增加 texture pack
145
Assets/Editor/FilePathChecker.cs
Normal file
@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
public sealed class FilePathChecker : EditorWindow
|
||||
{
|
||||
public const int MaxPathLen = 255;
|
||||
public const int MaxFileNameLen = 63;
|
||||
private List<string> files;
|
||||
private int curmaxPathLen = 180;
|
||||
private int curmaxFileNameLen = 50;
|
||||
private ConcurrentBag<string> showFiles = new();
|
||||
|
||||
private Vector2 silderPos = Vector2.zero;
|
||||
|
||||
private Tuple<string, bool>[] filters = new Tuple<string, bool>[]
|
||||
{
|
||||
new ("路径长度", false),
|
||||
new ("文件名长度", true),
|
||||
new ("材质", true),
|
||||
new ("模型", false),
|
||||
new ("场景", false),
|
||||
new ("其它",false),
|
||||
};
|
||||
|
||||
[MenuItem("Window/路径检查")]
|
||||
private static void OpenFilePathCheckerWindow()
|
||||
{
|
||||
var wnd = GetWindow<FilePathChecker>();
|
||||
wnd.titleContent = new GUIContent("资源路径检查");
|
||||
}
|
||||
|
||||
private FilePathChecker()
|
||||
{
|
||||
ConcurrentBag<string> fileBag = new ConcurrentBag<string>();
|
||||
Parallel.ForEach(Directory.GetFiles(Application.dataPath, "*.*", SearchOption.AllDirectories), item =>
|
||||
{
|
||||
if (item.EndsWith(".meta"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
fileBag.Add("Assets" + item.Replace('\\', '/').Replace(Application.dataPath.Replace('\\', '/'), ""));
|
||||
});
|
||||
|
||||
files = fileBag.ToList();
|
||||
FilterResult();
|
||||
}
|
||||
|
||||
private void FilterResult()
|
||||
{
|
||||
showFiles.Clear();
|
||||
Parallel.ForEach(files, f =>
|
||||
{
|
||||
if (filters[0].Item2 && f.Length > curmaxPathLen || filters[1].Item2 && Path.GetFileNameWithoutExtension(f).Length > curmaxFileNameLen)
|
||||
{
|
||||
if (filters[2].Item2 && f.EndsWith(".mat"))
|
||||
{
|
||||
showFiles.Add(f);
|
||||
}
|
||||
else if (filters[3].Item2 && (f.ToLower() is string s && (s.EndsWith(".fbx") || s.EndsWith(".obj"))))
|
||||
{
|
||||
showFiles.Add(f);
|
||||
}
|
||||
else if (filters[4].Item2 && (f.ToLower() is string s1 && (s1.EndsWith(".unity") || s1.EndsWith(".scene"))))
|
||||
{
|
||||
showFiles.Add(f);
|
||||
}
|
||||
else if (filters[5].Item2)
|
||||
{
|
||||
showFiles.Add(f);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void OnGUI()
|
||||
{
|
||||
EditorGUILayout.BeginVertical();
|
||||
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
EditorGUILayout.LabelField("路径长度");
|
||||
var _curmaxPathLen = EditorGUILayout.IntSlider(curmaxPathLen, 16, MaxPathLen);
|
||||
if (_curmaxPathLen != curmaxPathLen)
|
||||
{
|
||||
curmaxPathLen = _curmaxPathLen;
|
||||
FilterResult();
|
||||
}
|
||||
EditorGUILayout.EndHorizontal();
|
||||
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
EditorGUILayout.LabelField("文件名长度");
|
||||
var _curmaxFileNameLen = EditorGUILayout.IntSlider(curmaxFileNameLen, 1, MaxFileNameLen);
|
||||
if (_curmaxFileNameLen != curmaxFileNameLen)
|
||||
{
|
||||
curmaxFileNameLen = _curmaxFileNameLen;
|
||||
FilterResult();
|
||||
}
|
||||
|
||||
EditorGUILayout.EndHorizontal();
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
|
||||
for (int i = 0; i < filters.Length; i++)
|
||||
{
|
||||
var filter = filters[i];
|
||||
var v = EditorGUILayout.Toggle(filter.Item1, filter.Item2);
|
||||
if (v != filter.Item2)
|
||||
{
|
||||
filters[i] = new Tuple<string, bool>(filter.Item1, v);
|
||||
FilterResult();
|
||||
}
|
||||
}
|
||||
|
||||
EditorGUILayout.EndHorizontal();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
silderPos = EditorGUILayout.BeginScrollView(silderPos);
|
||||
foreach (var item in showFiles)
|
||||
{
|
||||
FileItem(item);
|
||||
}
|
||||
|
||||
EditorGUILayout.EndScrollView();
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
}
|
||||
|
||||
|
||||
private void FileItem(string path)
|
||||
{
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
EditorGUILayout.LabelField(path);
|
||||
if (GUILayout.Button("Ping"))
|
||||
{
|
||||
EditorGUIUtility.PingObject(AssetDatabase.LoadAssetAtPath<UnityEngine.Object>(path));
|
||||
}
|
||||
EditorGUILayout.EndHorizontal();
|
||||
}
|
||||
}
|
||||
11
Assets/Editor/FilePathChecker.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ffd5a5c15c510b34c94f1d0e05debbe7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Editor/TexturePack.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6258725997e3ca0418f2644062e6d916
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
159
Assets/Editor/TexturePack/Docker.cs
Normal file
@ -0,0 +1,159 @@
|
||||
#if UNITY_EDITOR
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
public static class Docker
|
||||
{
|
||||
|
||||
#region Reflection Types
|
||||
private class _EditorWindow
|
||||
{
|
||||
private EditorWindow instance;
|
||||
private Type type;
|
||||
|
||||
public _EditorWindow(EditorWindow instance)
|
||||
{
|
||||
this.instance = instance;
|
||||
type = instance.GetType();
|
||||
}
|
||||
|
||||
public object m_Parent
|
||||
{
|
||||
get
|
||||
{
|
||||
var field = type.GetField("m_Parent", BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
return field.GetValue(instance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class _DockArea
|
||||
{
|
||||
private object instance;
|
||||
private Type type;
|
||||
|
||||
public _DockArea(object instance)
|
||||
{
|
||||
this.instance = instance;
|
||||
type = instance.GetType();
|
||||
}
|
||||
|
||||
public object window
|
||||
{
|
||||
get
|
||||
{
|
||||
var property = type.GetProperty("window", BindingFlags.Instance | BindingFlags.Public);
|
||||
return property.GetValue(instance, null);
|
||||
}
|
||||
}
|
||||
|
||||
public object s_OriginalDragSource
|
||||
{
|
||||
set
|
||||
{
|
||||
var field = type.GetField("s_OriginalDragSource", BindingFlags.Static | BindingFlags.NonPublic);
|
||||
field.SetValue(null, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class _ContainerWindow
|
||||
{
|
||||
private object instance;
|
||||
private Type type;
|
||||
|
||||
public _ContainerWindow(object instance)
|
||||
{
|
||||
this.instance = instance;
|
||||
type = instance.GetType();
|
||||
}
|
||||
|
||||
|
||||
public object rootSplitView
|
||||
{
|
||||
get
|
||||
{
|
||||
var property = type.GetProperty("rootSplitView", BindingFlags.Instance | BindingFlags.Public);
|
||||
return property.GetValue(instance, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class _SplitView
|
||||
{
|
||||
private object instance;
|
||||
private Type type;
|
||||
|
||||
public _SplitView(object instance)
|
||||
{
|
||||
this.instance = instance;
|
||||
type = instance.GetType();
|
||||
}
|
||||
|
||||
public object DragOver(EditorWindow child, Vector2 screenPoint)
|
||||
{
|
||||
var method = type.GetMethod("DragOver", BindingFlags.Instance | BindingFlags.Public);
|
||||
return method.Invoke(instance, new object[] { child, screenPoint });
|
||||
}
|
||||
|
||||
public void PerformDrop(EditorWindow child, object dropInfo, Vector2 screenPoint)
|
||||
{
|
||||
var method = type.GetMethod("PerformDrop", BindingFlags.Instance | BindingFlags.Public);
|
||||
method.Invoke(instance, new object[] { child, dropInfo, screenPoint });
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
public enum DockPosition
|
||||
{
|
||||
Left,
|
||||
Top,
|
||||
Right,
|
||||
Bottom
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Docks the second window to the first window at the given position
|
||||
/// </summary>
|
||||
public static void Dock(this EditorWindow wnd, EditorWindow other, DockPosition position)
|
||||
{
|
||||
var mousePosition = GetFakeMousePosition(wnd, position);
|
||||
|
||||
var parent = new _EditorWindow(wnd);
|
||||
var child = new _EditorWindow(other);
|
||||
var dockArea = new _DockArea(parent.m_Parent);
|
||||
var containerWindow = new _ContainerWindow(dockArea.window);
|
||||
var splitView = new _SplitView(containerWindow.rootSplitView);
|
||||
var dropInfo = splitView.DragOver(other, mousePosition);
|
||||
dockArea.s_OriginalDragSource = child.m_Parent;
|
||||
splitView.PerformDrop(other, dropInfo, mousePosition);
|
||||
}
|
||||
|
||||
private static Vector2 GetFakeMousePosition(EditorWindow wnd, DockPosition position)
|
||||
{
|
||||
Vector2 mousePosition = Vector2.zero;
|
||||
|
||||
// The 20 is required to make the docking work.
|
||||
// Smaller values might not work when faking the mouse position.
|
||||
switch (position)
|
||||
{
|
||||
case DockPosition.Left:
|
||||
mousePosition = new Vector2(20, wnd.position.size.y / 2);
|
||||
break;
|
||||
case DockPosition.Top:
|
||||
mousePosition = new Vector2(wnd.position.size.x / 2, 20);
|
||||
break;
|
||||
case DockPosition.Right:
|
||||
mousePosition = new Vector2(wnd.position.size.x - 20, wnd.position.size.y / 2);
|
||||
break;
|
||||
case DockPosition.Bottom:
|
||||
mousePosition = new Vector2(wnd.position.size.x / 2, wnd.position.size.y - 20);
|
||||
break;
|
||||
}
|
||||
|
||||
return GUIUtility.GUIToScreenPoint(mousePosition);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
11
Assets/Editor/TexturePack/Docker.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b25038136cd4d354fa7c02bca38c30dd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Editor/TexturePack/Resources.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5eab531d55428ec4faf2565e8dccc92b
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
50
Assets/Editor/TexturePack/Resources/25_10_30_084215.asset
Normal file
@ -0,0 +1,50 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 34bbc4130cb4b964aacff1ffb6ea7dd9, type: 3}
|
||||
m_Name: 25_10_30_084215
|
||||
m_EditorClassIdentifier:
|
||||
PackType: 1
|
||||
OriginTexture2TextureInfo:
|
||||
m_Keys:
|
||||
- {fileID: 2800000, guid: 07a6d0e57a3ecf045a4c126e11857e16, type: 3}
|
||||
- {fileID: 2800000, guid: 0fe9d9cf76b17d7439a37e14b9efecec, type: 3}
|
||||
- {fileID: 2800000, guid: 3cfd0258a2a2046a3a14bbd0266f5825, type: 3}
|
||||
m_Values:
|
||||
- OriginTexture: {fileID: 2800000, guid: 07a6d0e57a3ecf045a4c126e11857e16, type: 3}
|
||||
ArrayIndex: 0
|
||||
ScaleOffset:
|
||||
x: 0
|
||||
y: 0
|
||||
z: 0
|
||||
w: 0
|
||||
- OriginTexture: {fileID: 2800000, guid: 0fe9d9cf76b17d7439a37e14b9efecec, type: 3}
|
||||
ArrayIndex: 2
|
||||
ScaleOffset:
|
||||
x: 0
|
||||
y: 0
|
||||
z: 0
|
||||
w: 0
|
||||
- OriginTexture: {fileID: 2800000, guid: 3cfd0258a2a2046a3a14bbd0266f5825, type: 3}
|
||||
ArrayIndex: 1
|
||||
ScaleOffset:
|
||||
x: 0
|
||||
y: 0
|
||||
z: 0
|
||||
w: 0
|
||||
Textures:
|
||||
- {fileID: 2800000, guid: 07a6d0e57a3ecf045a4c126e11857e16, type: 3}
|
||||
- {fileID: 2800000, guid: 3cfd0258a2a2046a3a14bbd0266f5825, type: 3}
|
||||
- {fileID: 2800000, guid: 0fe9d9cf76b17d7439a37e14b9efecec, type: 3}
|
||||
TextureAtlas: {fileID: 0}
|
||||
TextureAtlasPath: Assets/Editor/TexturePack/Resources/test.png
|
||||
TextureArray: {fileID: 0}
|
||||
TextureArrayPath: Assets/Editor/TexturePack/Resources/test.png
|
||||
@ -1,8 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c499845f447c484fb847ad545b279b9
|
||||
guid: 2eb1332f37c785c4e95627dc33fa7db2
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 112000000
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
37
Assets/Editor/TexturePack/Resources/25_11_05_042429.asset
Normal file
@ -0,0 +1,37 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 34bbc4130cb4b964aacff1ffb6ea7dd9, type: 3}
|
||||
m_Name: 25_11_05_042429
|
||||
m_EditorClassIdentifier:
|
||||
PackType: 0
|
||||
OriginTexture2TextureInfo:
|
||||
m_Keys:
|
||||
- {fileID: 2800000, guid: 62a1c70c49ee48949804a1b9704d98f4, type: 3}
|
||||
- {fileID: 2800000, guid: 511247e6f2319624b9f36b17c140f4fb, type: 3}
|
||||
m_Values:
|
||||
- OriginTexture: {fileID: 2800000, guid: 62a1c70c49ee48949804a1b9704d98f4, type: 3}
|
||||
ArrayIndex: 0
|
||||
Offset:
|
||||
x: 0
|
||||
y: 0
|
||||
- OriginTexture: {fileID: 2800000, guid: 511247e6f2319624b9f36b17c140f4fb, type: 3}
|
||||
ArrayIndex: 0
|
||||
Offset:
|
||||
x: 0.5
|
||||
y: 0
|
||||
Textures: []
|
||||
TextureAtlas: {fileID: 0}
|
||||
AtlasScale: 0.5
|
||||
TextureAtlasPath:
|
||||
TextureArray: {fileID: 0}
|
||||
TextureArrayPath:
|
||||
IsNormalMap: 0
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c07cd70a3d89b3489cd8988b2e92709
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
37
Assets/Editor/TexturePack/Resources/25_11_05_042515.asset
Normal file
@ -0,0 +1,37 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 34bbc4130cb4b964aacff1ffb6ea7dd9, type: 3}
|
||||
m_Name: 25_11_05_042515
|
||||
m_EditorClassIdentifier:
|
||||
PackType: 0
|
||||
OriginTexture2TextureInfo:
|
||||
m_Keys:
|
||||
- {fileID: 2800000, guid: 0cdf7154483eb934e8f18f84c31ae2a6, type: 3}
|
||||
- {fileID: 2800000, guid: a5bfb97ceb81b244cb97df741fe3953c, type: 3}
|
||||
m_Values:
|
||||
- OriginTexture: {fileID: 2800000, guid: 0cdf7154483eb934e8f18f84c31ae2a6, type: 3}
|
||||
ArrayIndex: 0
|
||||
Offset:
|
||||
x: 0
|
||||
y: 0
|
||||
- OriginTexture: {fileID: 2800000, guid: a5bfb97ceb81b244cb97df741fe3953c, type: 3}
|
||||
ArrayIndex: 0
|
||||
Offset:
|
||||
x: 0.5
|
||||
y: 0
|
||||
Textures: []
|
||||
TextureAtlas: {fileID: 0}
|
||||
AtlasScale: 0.5
|
||||
TextureAtlasPath:
|
||||
TextureArray: {fileID: 0}
|
||||
TextureArrayPath:
|
||||
IsNormalMap: 1
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9d6ad6c436222942b84ebc5c42300ef
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
39
Assets/Editor/TexturePack/Resources/25_11_05_042628.asset
Normal file
@ -0,0 +1,39 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 34bbc4130cb4b964aacff1ffb6ea7dd9, type: 3}
|
||||
m_Name: 25_11_05_042628
|
||||
m_EditorClassIdentifier:
|
||||
PackType: 0
|
||||
OriginTexture2TextureInfo:
|
||||
m_Keys:
|
||||
- {fileID: 2800000, guid: facfa14bd567c904583bd41b3fa67655, type: 3}
|
||||
- {fileID: 2800000, guid: f424fe2441e9bbb408f606da9d5ea74c, type: 3}
|
||||
m_Values:
|
||||
- OriginTexture: {fileID: 2800000, guid: facfa14bd567c904583bd41b3fa67655, type: 3}
|
||||
ArrayIndex: 0
|
||||
Offset:
|
||||
x: 0.5
|
||||
y: 0
|
||||
- OriginTexture: {fileID: 2800000, guid: f424fe2441e9bbb408f606da9d5ea74c, type: 3}
|
||||
ArrayIndex: 0
|
||||
Offset:
|
||||
x: 0
|
||||
y: 0
|
||||
Textures:
|
||||
- {fileID: 2800000, guid: f424fe2441e9bbb408f606da9d5ea74c, type: 3}
|
||||
- {fileID: 2800000, guid: facfa14bd567c904583bd41b3fa67655, type: 3}
|
||||
TextureAtlas: {fileID: 2800000, guid: ff4f3681a7495974b9475e47d0559608, type: 3}
|
||||
AtlasScale: 0.5
|
||||
TextureAtlasPath: Assets/mask.png
|
||||
TextureArray: {fileID: 0}
|
||||
TextureArrayPath:
|
||||
IsNormalMap: 0
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d74cdc82d14d5d547bdd58c495dd0535
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
37
Assets/Editor/TexturePack/Resources/25_11_05_102946.asset
Normal file
@ -0,0 +1,37 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 34bbc4130cb4b964aacff1ffb6ea7dd9, type: 3}
|
||||
m_Name: 25_11_05_102946
|
||||
m_EditorClassIdentifier:
|
||||
PackType: 1
|
||||
OriginTexture2TextureInfo:
|
||||
m_Keys:
|
||||
- {fileID: 2800000, guid: 0cdf7154483eb934e8f18f84c31ae2a6, type: 3}
|
||||
- {fileID: 2800000, guid: a5bfb97ceb81b244cb97df741fe3953c, type: 3}
|
||||
m_Values:
|
||||
- OriginTexture: {fileID: 2800000, guid: 0cdf7154483eb934e8f18f84c31ae2a6, type: 3}
|
||||
ArrayIndex: 0
|
||||
Offset:
|
||||
x: 0
|
||||
y: 0
|
||||
- OriginTexture: {fileID: 2800000, guid: a5bfb97ceb81b244cb97df741fe3953c, type: 3}
|
||||
ArrayIndex: 1
|
||||
Offset:
|
||||
x: 0
|
||||
y: 0
|
||||
Textures: []
|
||||
TextureAtlas: {fileID: 0}
|
||||
AtlasScale: 0.5
|
||||
TextureAtlasPath:
|
||||
TextureArray: {fileID: 0}
|
||||
TextureArrayPath:
|
||||
IsNormalMap: 1
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: be0526f343db1e14da67810237489026
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
37
Assets/Editor/TexturePack/Resources/25_11_05_110641.asset
Normal file
@ -0,0 +1,37 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 34bbc4130cb4b964aacff1ffb6ea7dd9, type: 3}
|
||||
m_Name: 25_11_05_110641
|
||||
m_EditorClassIdentifier:
|
||||
PackType: 1
|
||||
OriginTexture2TextureInfo:
|
||||
m_Keys:
|
||||
- {fileID: 2800000, guid: 62a1c70c49ee48949804a1b9704d98f4, type: 3}
|
||||
- {fileID: 2800000, guid: 511247e6f2319624b9f36b17c140f4fb, type: 3}
|
||||
m_Values:
|
||||
- OriginTexture: {fileID: 2800000, guid: 62a1c70c49ee48949804a1b9704d98f4, type: 3}
|
||||
ArrayIndex: 0
|
||||
Offset:
|
||||
x: 0
|
||||
y: 0
|
||||
- OriginTexture: {fileID: 2800000, guid: 511247e6f2319624b9f36b17c140f4fb, type: 3}
|
||||
ArrayIndex: 1
|
||||
Offset:
|
||||
x: 0
|
||||
y: 0
|
||||
Textures: []
|
||||
TextureAtlas: {fileID: 0}
|
||||
AtlasScale: 0
|
||||
TextureAtlasPath:
|
||||
TextureArray: {fileID: 0}
|
||||
TextureArrayPath:
|
||||
IsNormalMap: 0
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ec48692bce2cb484ea1c3dd477b35bd1
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
23
Assets/Editor/TexturePack/Resources/texture_map_index.asset
Normal file
@ -0,0 +1,23 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 139452af06b79914f9cc56d83913a7e2, type: 3}
|
||||
m_Name: texture_map_index
|
||||
m_EditorClassIdentifier:
|
||||
ResultGuid2TextureMap:
|
||||
m_Keys: []
|
||||
m_Values: []
|
||||
TextureGuid2TextureMap:
|
||||
m_Keys: []
|
||||
m_Values: []
|
||||
TextureMap2TextureGuid:
|
||||
m_Keys: []
|
||||
m_Values: []
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 53d1cbf3326c0b34d8f7ecf86e03738f
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
38
Assets/Editor/TexturePack/TextureMapIndex.cs
Normal file
@ -0,0 +1,38 @@
|
||||
using System.IO;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
namespace TexturePacker
|
||||
{
|
||||
internal class TextureMapIndex : ScriptableObject
|
||||
{
|
||||
public SerializedDictionary<string, TextureMapInfo> ResultGuid2TextureMap;
|
||||
public SerializedDictionary<string, TextureMapInfo> TextureGuid2TextureMap;
|
||||
public SerializedDictionary<TextureMapInfo, string> TextureMap2TextureGuid;
|
||||
|
||||
public static readonly string TextureMapIndexPath = $"{TextureMapInfo.TextureMapDir}/texture_map_index.asset";
|
||||
|
||||
private static TextureMapIndex instance;
|
||||
|
||||
public static TextureMapIndex Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
if(instance == null)
|
||||
{
|
||||
if(File.Exists(TextureMapIndexPath))
|
||||
{
|
||||
instance = AssetDatabase.LoadAssetAtPath<TextureMapIndex>(TextureMapIndexPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
instance = ScriptableObject.CreateInstance<TextureMapIndex>();
|
||||
AssetDatabase.CreateAsset(instance, TextureMapIndexPath);
|
||||
}
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Editor/TexturePack/TextureMapIndex.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 139452af06b79914f9cc56d83913a7e2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
56
Assets/Editor/TexturePack/TextureMapInfo.cs
Normal file
@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Unity.Mathematics;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
namespace TexturePacker
|
||||
{
|
||||
public sealed class TextureMapInfo : ScriptableObject
|
||||
{
|
||||
public const string TextureMapDir = "Assets/Editor/TexturePack/Resources";
|
||||
|
||||
[Serializable]
|
||||
public struct TextureInfo
|
||||
{
|
||||
public Texture2D OriginTexture;
|
||||
public int ArrayIndex;
|
||||
public float2 Offset;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public enum EPackType
|
||||
{
|
||||
Atlas,
|
||||
Array
|
||||
}
|
||||
|
||||
public EPackType PackType = EPackType.Atlas;
|
||||
public SerializedDictionary<Texture2D, TextureInfo> OriginTexture2TextureInfo = new();
|
||||
public List<Texture2D> Textures;
|
||||
public Texture2D TextureAtlas;
|
||||
public float AtlasScale;
|
||||
public string TextureAtlasPath;
|
||||
public Texture2DArray TextureArray;
|
||||
public string TextureArrayPath;
|
||||
public bool IsNormalMap;
|
||||
|
||||
[ContextMenu("Test")]
|
||||
private void Test()
|
||||
{
|
||||
Texture2D offsetTex = new Texture2D(Textures.Count, 1, TextureFormat.RG16, false);
|
||||
for (int i = 0; i < Textures.Count; i++)
|
||||
{
|
||||
var tex = Textures[i];
|
||||
var info = OriginTexture2TextureInfo[tex];
|
||||
offsetTex.SetPixel(i, 0, new Color(info.Offset.x, info.Offset.y, 0));
|
||||
}
|
||||
|
||||
var path = EditorUtility.SaveFilePanelInProject("保存offset图", "OffsetMap", "png", "");
|
||||
File.WriteAllBytes(path, offsetTex.EncodeToPNG());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
11
Assets/Editor/TexturePack/TextureMapInfo.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 34bbc4130cb4b964aacff1ffb6ea7dd9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
735
Assets/Editor/TexturePack/TexturePackerEditor.cs
Normal file
@ -0,0 +1,735 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using TexturePacker;
|
||||
using Unity.Mathematics;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Experimental.Rendering;
|
||||
using UnityEngine.Rendering;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
public sealed class TexturePackerEditor : EditorWindow
|
||||
{
|
||||
[SerializeField]
|
||||
private VisualTreeAsset m_VisualTreeAsset = default;
|
||||
private TextureMapInfo textureMapInfo;
|
||||
|
||||
private Texture2D textureAtlas;
|
||||
private Texture2DArray textureArray;
|
||||
|
||||
private IMGUIContainer imageListContainer;
|
||||
private List<Texture2D> selectedTexs = new();
|
||||
private List<Rect> texRects = new();
|
||||
|
||||
private Vector2 cellSize = new Vector2(100, 100);
|
||||
private const int MaxArraySize = 255;
|
||||
|
||||
private int selectIndex = -1;
|
||||
private int selectIndexForMove = -1;
|
||||
private Vector2 toolbarOffset = new Vector2(0, 35);
|
||||
|
||||
private int atlasPadding = 0;
|
||||
private static Func<UnityEngine.Object, bool, EditorWindow> fnOpenPropertyEditor;
|
||||
private int textureSize = 512;
|
||||
private EditorWindow atlasPropertiesWindow = null;
|
||||
private EditorWindow arrayPropertiesWindow = null;
|
||||
private Label imgCntLabel = null;
|
||||
private Label infoLabel = null;
|
||||
private GraphicsFormat graphicsFormat = GraphicsFormat.R32G32B32A32_SFloat;
|
||||
|
||||
public enum ETextureSize
|
||||
{
|
||||
_128 = 1 << 7,
|
||||
_256 = 1 << 8,
|
||||
_512 = 1 << 9,
|
||||
_1024 = 1 << 10,
|
||||
}
|
||||
|
||||
static TexturePackerEditor()
|
||||
{
|
||||
var editorCore = AppDomain.CurrentDomain.GetAssemblies().Where(a => a.GetName().Name.Equals("UnityEditor.CoreModule")).FirstOrDefault();
|
||||
var type = editorCore.GetType("UnityEditor.PropertyEditor");
|
||||
var methodInfo = type.GetMethod("OpenPropertyEditor", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance, null, new Type[] { typeof(UnityEngine.Object), typeof(bool) }, null);
|
||||
fnOpenPropertyEditor = methodInfo.CreateDelegate(typeof(Func<UnityEngine.Object, bool, EditorWindow>)) as Func<UnityEngine.Object, bool, EditorWindow>;
|
||||
}
|
||||
|
||||
[MenuItem("Tools/Performance/TexturePackerEditor")]
|
||||
public static void OpenTexturePackerEditor()
|
||||
{
|
||||
TexturePackerEditor wnd = GetWindow<TexturePackerEditor>();
|
||||
wnd.titleContent = new GUIContent("TexturePackerEditor");
|
||||
}
|
||||
|
||||
[UnityEditor.Callbacks.OnOpenAsset(0)]
|
||||
private static bool OnOpenTextureMapInfo(int instanceID, int line)
|
||||
{
|
||||
var textureMapInfo = EditorUtility.InstanceIDToObject(instanceID) as TextureMapInfo;
|
||||
if(!textureMapInfo)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
TexturePackerEditor wnd = GetWindow<TexturePackerEditor>();
|
||||
wnd.titleContent = new GUIContent("TexturePackerEditor");
|
||||
wnd.InitWithTextureMapInfo(textureMapInfo);
|
||||
EditorApplication.delayCall += () =>
|
||||
{
|
||||
wnd.UpdateResult();
|
||||
};
|
||||
return false;
|
||||
}
|
||||
|
||||
private static readonly Color btNormalColor = ColorUtils.ToRGBA(0xFF585858);
|
||||
private static readonly Color btClikedColor = ColorUtils.ToRGBA(0xFF46607C);
|
||||
|
||||
public void CreateGUI()
|
||||
{
|
||||
// Each editor window contains a root VisualElement object
|
||||
VisualElement root = rootVisualElement;
|
||||
|
||||
// Instantiate UXML
|
||||
VisualElement labelFromUXML = m_VisualTreeAsset.Instantiate();
|
||||
root.Add(labelFromUXML);
|
||||
var btArray = root.Q<Button>("btArray");
|
||||
var btAtlas = root.Q<Button>("btAtlas");
|
||||
var btSave = root.Q<Button>("btSave");
|
||||
infoLabel = root.Q<Label>("infoLabel");
|
||||
|
||||
var slAtlasPadding = root.Q<SliderInt>("slAtlasPadding");
|
||||
var textureSizeEnum = root.Q<EnumField>("textureSizeEnum");
|
||||
imgCntLabel = root.Q<Label>("imgCntLabel");
|
||||
root.Q<Toggle>("tgIsNormal").RegisterValueChangedCallback(b =>
|
||||
{
|
||||
textureMapInfo.IsNormalMap = b.newValue;
|
||||
SetNormalOriginTextureFormat(!textureMapInfo.IsNormalMap);
|
||||
UpdateResult();
|
||||
});
|
||||
|
||||
textureSizeEnum.RegisterCallback<ChangeEvent<Enum>>((e) =>
|
||||
{
|
||||
var newTextureSize = (int)(ETextureSize)e.newValue;
|
||||
if(textureSize != newTextureSize)
|
||||
{
|
||||
textureSize = newTextureSize;
|
||||
UpdateResult();
|
||||
}
|
||||
});
|
||||
|
||||
btArray.clicked += () =>
|
||||
{
|
||||
btArray.style.backgroundColor = btClikedColor;
|
||||
btAtlas.style.backgroundColor = btNormalColor;
|
||||
textureMapInfo.PackType = TextureMapInfo.EPackType.Array;
|
||||
slAtlasPadding.visible = false;
|
||||
UpdateResult();
|
||||
};
|
||||
|
||||
btAtlas.clicked += () =>
|
||||
{
|
||||
btAtlas.style.backgroundColor = btClikedColor;
|
||||
btArray.style.backgroundColor = btNormalColor;
|
||||
textureMapInfo.PackType = TextureMapInfo.EPackType.Atlas;
|
||||
slAtlasPadding.visible = true;
|
||||
UpdateResult();
|
||||
};
|
||||
|
||||
|
||||
btSave.clicked += Save;
|
||||
|
||||
btAtlas.style.backgroundColor = btClikedColor;
|
||||
|
||||
slAtlasPadding.RegisterCallback<ChangeEvent<int>>((i) =>
|
||||
{
|
||||
atlasPadding = i.newValue;
|
||||
UpdateResult();
|
||||
});
|
||||
|
||||
imageListContainer = root.Q<IMGUIContainer>("imgList");
|
||||
imageListContainer.onGUIHandler = OnImageListGUI;
|
||||
imageListContainer.RegisterCallback<MouseDownEvent>((e) =>
|
||||
{
|
||||
var mousePos = Event.current.mousePosition - toolbarOffset;
|
||||
for (int i = 0; i < texRects.Count; i++)
|
||||
{
|
||||
if (texRects[i].Contains(mousePos))
|
||||
{
|
||||
selectIndexForMove = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
imageListContainer.RegisterCallback<MouseUpEvent>((e) =>
|
||||
{
|
||||
var swpaIndex = -1;
|
||||
var mousePos = Event.current.mousePosition - toolbarOffset;
|
||||
for (int i = 0; i < texRects.Count; i++)
|
||||
{
|
||||
if (texRects[i].Contains(mousePos))
|
||||
{
|
||||
swpaIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (swpaIndex != -1 && selectIndexForMove != -1)
|
||||
{
|
||||
if (selectIndexForMove != swpaIndex)
|
||||
{
|
||||
(selectedTexs[selectIndexForMove], selectedTexs[swpaIndex]) = (selectedTexs[swpaIndex], selectedTexs[selectIndexForMove]);
|
||||
(texRects[selectIndexForMove], texRects[swpaIndex]) = (texRects[swpaIndex], texRects[selectIndexForMove]);
|
||||
UpdateResult();
|
||||
}
|
||||
}
|
||||
selectIndexForMove = -1;
|
||||
});
|
||||
}
|
||||
|
||||
private void SetNormalOriginTextureFormat(bool toNormal)
|
||||
{
|
||||
foreach (var item in selectedTexs)
|
||||
{
|
||||
var ti = TextureImporter.GetAtPath(AssetDatabase.GetAssetPath(item)) as TextureImporter;
|
||||
if(toNormal)
|
||||
{
|
||||
ti.textureType = TextureImporterType.NormalMap;
|
||||
}
|
||||
else if (ti.textureType == TextureImporterType.NormalMap)
|
||||
{
|
||||
ti.textureType = TextureImporterType.Default;
|
||||
ti.sRGBTexture = false;
|
||||
}
|
||||
ti.SaveAndReimport();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnImageListGUI()
|
||||
{
|
||||
float windowWidth = position.width;
|
||||
int dynamicColumns = Mathf.FloorToInt(windowWidth / (cellSize.x + 5));
|
||||
|
||||
int count = selectedTexs.Count;
|
||||
int currentColumn = 0;
|
||||
int currentRow = 0;
|
||||
|
||||
var bkColor = GUI.backgroundColor;
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
if (currentColumn == 0)
|
||||
{
|
||||
GUILayout.BeginHorizontal();
|
||||
}
|
||||
|
||||
var rect = EditorGUILayout.GetControlRect(GUILayout.Width(cellSize.x), GUILayout.Height(cellSize.y));
|
||||
texRects[i] = rect;
|
||||
|
||||
if (i == selectIndex || selectIndexForMove != -1 && rect.Contains(Event.current.mousePosition - toolbarOffset))
|
||||
{
|
||||
GUI.backgroundColor = Color.blue;
|
||||
}
|
||||
else
|
||||
{
|
||||
GUI.backgroundColor = bkColor;
|
||||
}
|
||||
|
||||
// insert ?
|
||||
//EditorGUI.DrawRect
|
||||
|
||||
if (GUI.Button(rect, selectedTexs[i]))
|
||||
{
|
||||
if (selectIndex == i)
|
||||
{
|
||||
EditorGUIUtility.PingObject(selectedTexs[i]);
|
||||
}
|
||||
selectIndex = i;
|
||||
}
|
||||
|
||||
currentColumn++;
|
||||
if (currentColumn >= dynamicColumns)
|
||||
{
|
||||
GUILayout.EndHorizontal();
|
||||
currentRow++;
|
||||
currentColumn = 0;
|
||||
}
|
||||
}
|
||||
GUI.backgroundColor = bkColor;
|
||||
if (selectIndexForMove != -1)
|
||||
{
|
||||
GUI.Button(new Rect(Event.current.mousePosition, cellSize), selectedTexs[selectIndexForMove]);
|
||||
}
|
||||
if (selectIndex != -1)
|
||||
{
|
||||
infoLabel.visible = true;
|
||||
var tex = selectedTexs[selectIndex];
|
||||
var tinfo = textureMapInfo.OriginTexture2TextureInfo[tex];
|
||||
if (textureMapInfo.PackType == TextureMapInfo.EPackType.Array)
|
||||
{
|
||||
infoLabel.text = $"{tex.name} array index:{tinfo.ArrayIndex}";
|
||||
}
|
||||
else
|
||||
{
|
||||
infoLabel.text = $"{tex.name} atlas offset:{tinfo.Offset}";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
infoLabel.visible = false;
|
||||
}
|
||||
if (currentColumn != 0)
|
||||
{
|
||||
GUILayout.EndHorizontal();
|
||||
}
|
||||
}
|
||||
|
||||
private void InitWithTextureMapInfo(TextureMapInfo textureMapInfo)
|
||||
{
|
||||
this.textureMapInfo = textureMapInfo;
|
||||
VisualElement root = rootVisualElement;
|
||||
var btArray = root.Q<Button>("btArray");
|
||||
var btAtlas = root.Q<Button>("btAtlas");
|
||||
var slAtlasPadding = root.Q<SliderInt>("slAtlasPadding");
|
||||
if (textureMapInfo.PackType == TextureMapInfo.EPackType.Atlas)
|
||||
{
|
||||
btArray.style.backgroundColor = btNormalColor;
|
||||
btAtlas.style.backgroundColor = btClikedColor;
|
||||
slAtlasPadding.visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
btArray.style.backgroundColor = btClikedColor;
|
||||
btAtlas.style.backgroundColor = btNormalColor;
|
||||
slAtlasPadding.visible = false;
|
||||
}
|
||||
|
||||
if(textureMapInfo.IsNormalMap)
|
||||
{
|
||||
root.Q<Toggle>("tgIsNormal").value = true;
|
||||
SetNormalOriginTextureFormat(!textureMapInfo.IsNormalMap);
|
||||
}
|
||||
|
||||
selectedTexs = textureMapInfo.Textures;
|
||||
texRects = new List<Rect>(new Rect[selectedTexs.Count]);
|
||||
}
|
||||
|
||||
private void OnGUI()
|
||||
{
|
||||
if (textureMapInfo == null)
|
||||
{
|
||||
textureMapInfo = ScriptableObject.CreateInstance<TextureMapInfo>();
|
||||
}
|
||||
|
||||
switch (Event.current.type)
|
||||
{
|
||||
case EventType.MouseDrag:
|
||||
break;
|
||||
case EventType.MouseDown:
|
||||
selectIndex = -1;
|
||||
Repaint();
|
||||
break;
|
||||
case EventType.KeyDown:
|
||||
break;
|
||||
case EventType.KeyUp:
|
||||
if (Event.current.modifiers == EventModifiers.Control && Event.current.keyCode == KeyCode.S)
|
||||
{
|
||||
Save();
|
||||
}
|
||||
|
||||
if (Event.current.keyCode == KeyCode.Delete)
|
||||
{
|
||||
if (selectIndex != -1)
|
||||
{
|
||||
RmTexture(selectedTexs[selectIndex]);
|
||||
selectIndex = -1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case EventType.DragUpdated:
|
||||
{
|
||||
|
||||
for (var i = 0; i < DragAndDrop.objectReferences.Length; i++)
|
||||
{
|
||||
if (DragAndDrop.objectReferences[i] is Texture)
|
||||
{
|
||||
DragAndDrop.visualMode = DragAndDropVisualMode.Generic;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case EventType.DragExited:
|
||||
{
|
||||
for (var i = 0; i < DragAndDrop.objectReferences.Length; i++)
|
||||
{
|
||||
var tex = DragAndDrop.objectReferences[i] as Texture2D;
|
||||
if (tex)
|
||||
{
|
||||
AddTexture(tex);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case EventType.ContextClick:
|
||||
break;
|
||||
case EventType.MouseEnterWindow:
|
||||
break;
|
||||
case EventType.MouseLeaveWindow:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateResult(Texture2D result, int cellCnt)
|
||||
{
|
||||
result.Apply();
|
||||
var scale = (float)textureSize / result.width;
|
||||
for (int i = 0; i < selectedTexs.Count; i++)
|
||||
{
|
||||
var tex = selectedTexs[i];
|
||||
if (tex.width != textureSize)
|
||||
{
|
||||
Debug.LogWarning($"{tex.name} 尺寸错误: {tex.width} 正确值: {textureSize}");
|
||||
}
|
||||
int cellx = i % cellCnt;
|
||||
int celly = i / cellCnt;
|
||||
var mip = 0;
|
||||
if (tex.width > textureSize)
|
||||
{
|
||||
mip = (int)Mathf.Log(2, tex.width / textureSize);
|
||||
}
|
||||
{
|
||||
var temp = new Texture2D(textureSize, textureSize, graphicsFormat, 0, TextureCreationFlags.None);
|
||||
Graphics.ConvertTexture(tex, temp);
|
||||
|
||||
var offsetx = cellx * (textureSize + atlasPadding);
|
||||
var offsety = celly * (textureSize + atlasPadding);
|
||||
|
||||
Graphics.CopyTexture(temp, 0, 0, 0, 0, textureSize, textureSize, result, 0, 0, offsetx, offsety);
|
||||
GameObject.DestroyImmediate(temp);
|
||||
textureMapInfo.AtlasScale = scale;
|
||||
textureMapInfo.OriginTexture2TextureInfo[tex] = new TextureMapInfo.TextureInfo()
|
||||
{
|
||||
OriginTexture = tex,
|
||||
Offset = new float2((float)offsetx / result.width, (float)offsety / result.height),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateResult(Texture2DArray result)
|
||||
{
|
||||
for (int i = 0; i < selectedTexs.Count; i++)
|
||||
{
|
||||
var tex = selectedTexs[i];
|
||||
if (tex.width != textureSize)
|
||||
{
|
||||
Debug.LogWarning($"{tex.name} 尺寸错误: {tex.width} 正确值: {textureSize}");
|
||||
}
|
||||
|
||||
Graphics.ConvertTexture(tex, 0, result, i);
|
||||
textureMapInfo.OriginTexture2TextureInfo[tex] = new TextureMapInfo.TextureInfo()
|
||||
{
|
||||
OriginTexture = tex,
|
||||
ArrayIndex = i,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateResult()
|
||||
{
|
||||
if(selectedTexs.Count < 2)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (textureMapInfo.PackType == TextureMapInfo.EPackType.Atlas)
|
||||
{
|
||||
arrayPropertiesWindow?.Close();
|
||||
arrayPropertiesWindow = null;
|
||||
|
||||
var cellCnt = Mathf.CeilToInt(Mathf.Sqrt(selectedTexs.Count));
|
||||
var atlasPaddedSize = cellCnt * textureSize + (cellCnt - 1) * atlasPadding;
|
||||
if (textureAtlas == null || textureAtlas.width != atlasPaddedSize)
|
||||
{
|
||||
if (textureAtlas != null)
|
||||
{
|
||||
GameObject.DestroyImmediate(textureAtlas, false);
|
||||
}
|
||||
|
||||
textureAtlas = new Texture2D(atlasPaddedSize, atlasPaddedSize,
|
||||
graphicsFormat, (int)Mathf.Log(2, atlasPaddedSize) + 1, TextureCreationFlags.None)
|
||||
{
|
||||
wrapMode = TextureWrapMode.Clamp,
|
||||
};
|
||||
atlasPropertiesWindow?.Close();
|
||||
atlasPropertiesWindow = null;
|
||||
}
|
||||
|
||||
UpdateResult(textureAtlas, cellCnt);
|
||||
if (!atlasPropertiesWindow)
|
||||
{
|
||||
atlasPropertiesWindow = fnOpenPropertyEditor(textureAtlas, true);
|
||||
try
|
||||
{
|
||||
this.Dock(atlasPropertiesWindow, Docker.DockPosition.Right);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
atlasPropertiesWindow.Repaint();
|
||||
}
|
||||
else
|
||||
{
|
||||
atlasPropertiesWindow?.Close();
|
||||
atlasPropertiesWindow = null;
|
||||
if (textureArray == null || textureArray.depth != selectedTexs.Count || textureArray.width != textureSize)
|
||||
{
|
||||
if (textureArray != null)
|
||||
{
|
||||
GameObject.DestroyImmediate(textureArray, false);
|
||||
}
|
||||
|
||||
textureArray = new Texture2DArray(textureSize,
|
||||
textureSize, selectedTexs.Count, graphicsFormat, TextureCreationFlags.None, 12)
|
||||
{
|
||||
wrapMode = TextureWrapMode.Clamp,
|
||||
};
|
||||
|
||||
arrayPropertiesWindow?.Close();
|
||||
arrayPropertiesWindow = null;
|
||||
}
|
||||
|
||||
UpdateResult(textureArray);
|
||||
if (!arrayPropertiesWindow)
|
||||
{
|
||||
arrayPropertiesWindow = fnOpenPropertyEditor(textureArray, true);
|
||||
this.Dock(arrayPropertiesWindow, Docker.DockPosition.Right);
|
||||
}
|
||||
arrayPropertiesWindow.Repaint();
|
||||
}
|
||||
}
|
||||
|
||||
private void AddTexture(Texture2D texture2D)
|
||||
{
|
||||
if(TextureMapIndex.Instance.ResultGuid2TextureMap.TryGetValue(AssetDatabase.AssetPathToGUID(AssetDatabase.GetAssetPath(texture2D)), out var mapInfo))
|
||||
{
|
||||
selectedTexs.Clear();
|
||||
textureMapInfo = mapInfo;
|
||||
InitWithTextureMapInfo(textureMapInfo);
|
||||
}
|
||||
|
||||
if (texture2D.width % textureSize != 0)
|
||||
{
|
||||
EditorUtility.DisplayDialog("提示", $"贴图 {texture2D.name} 尺寸错误", "ok");
|
||||
return;
|
||||
}
|
||||
|
||||
if(selectedTexs.Count == MaxArraySize)
|
||||
{
|
||||
EditorUtility.DisplayDialog("提示", $"贴图数量最多 {MaxArraySize}", "ok");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!selectedTexs.Contains(texture2D))
|
||||
{
|
||||
selectedTexs.Add(texture2D);
|
||||
texRects.Add(new Rect());
|
||||
}
|
||||
else
|
||||
{
|
||||
ToastManager.ShowNotification(new Toast.ToastArgs()
|
||||
{
|
||||
Title = "Info",
|
||||
Message = "当前图片已存在",
|
||||
LifeTime = 2f,
|
||||
Severity = Toast.ToastSeverity.Info,
|
||||
ToastPosition = Toast.ToastPosition.TopCenter
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
imgCntLabel.text = selectedTexs.Count.ToString();
|
||||
UpdateResult();
|
||||
}
|
||||
|
||||
private void RmTexture(Texture2D texture2D)
|
||||
{
|
||||
var idx = selectedTexs.IndexOf(texture2D);
|
||||
if (idx != -1)
|
||||
{
|
||||
texRects.RemoveAt(idx);
|
||||
selectedTexs.RemoveAt(idx);
|
||||
}
|
||||
|
||||
imgCntLabel.text = selectedTexs.Count.ToString();
|
||||
UpdateResult();
|
||||
}
|
||||
|
||||
private void UpdateMapinfoBeforeSave()
|
||||
{
|
||||
textureMapInfo.Textures = selectedTexs;
|
||||
var hasAlpha = GraphicsFormatUtility.HasAlphaChannel(selectedTexs[0].graphicsFormat);
|
||||
for (int i = 1; i < selectedTexs.Count; i++)
|
||||
{
|
||||
var tex = selectedTexs[i];
|
||||
if (hasAlpha != GraphicsFormatUtility.HasAlphaChannel(tex.graphicsFormat))
|
||||
{
|
||||
if(!EditorUtility.DisplayDialog("警告", $"源贴图 alpha 不一致 :{tex.name}", "继续", "取消"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var rmLs = textureMapInfo.OriginTexture2TextureInfo.Keys.Where(t => !selectedTexs.Contains(t)).ToList();
|
||||
foreach (var rm in rmLs)
|
||||
{
|
||||
textureMapInfo.OriginTexture2TextureInfo.Remove(rm);
|
||||
}
|
||||
|
||||
if (textureMapInfo.PackType == TextureMapInfo.EPackType.Atlas)
|
||||
{
|
||||
GameObject.DestroyImmediate(textureArray);
|
||||
textureArray = null;
|
||||
textureMapInfo.TextureArray = null;
|
||||
|
||||
if (string.IsNullOrEmpty(textureMapInfo.TextureAtlasPath))
|
||||
{
|
||||
var savePath = EditorUtility.SaveFilePanelInProject("保存", "", "png", "");
|
||||
if (string.IsNullOrEmpty(savePath))
|
||||
{
|
||||
return;
|
||||
}
|
||||
textureMapInfo.TextureAtlasPath = savePath;
|
||||
}
|
||||
|
||||
AsyncGPUReadback.Request(textureAtlas, 0, (req) =>
|
||||
{
|
||||
if (!req.hasError)
|
||||
{
|
||||
{
|
||||
using var dataArray = ImageConversion.EncodeNativeArrayToPNG(req.GetData<byte>(), textureAtlas.graphicsFormat, (uint)textureAtlas.width, (uint)textureAtlas.height);
|
||||
using var fr = File.OpenWrite(textureMapInfo.TextureAtlasPath);
|
||||
fr.Write(dataArray);
|
||||
}
|
||||
|
||||
AssetDatabase.ImportAsset(textureMapInfo.TextureAtlasPath);
|
||||
if(TextureImporter.GetAtPath(textureMapInfo.TextureAtlasPath) is TextureImporter ti)
|
||||
{
|
||||
ti.SetTextureSettings(new TextureImporterSettings()
|
||||
{
|
||||
textureShape = TextureImporterShape.Texture2D,
|
||||
flipbookColumns = 1,
|
||||
flipbookRows = 1,
|
||||
sRGBTexture = false,
|
||||
readable = false,
|
||||
mipmapEnabled = true,
|
||||
wrapMode = TextureWrapMode.Clamp,
|
||||
});
|
||||
ti.SaveAndReimport();
|
||||
}
|
||||
|
||||
EditorApplication.delayCall += () =>
|
||||
{
|
||||
textureMapInfo.TextureAtlas = AssetDatabase.LoadAssetAtPath<Texture2D>(textureMapInfo.TextureAtlasPath);
|
||||
var guid = AssetDatabase.AssetPathToGUID(textureMapInfo.TextureAtlasPath);
|
||||
TextureMapIndex.Instance.ResultGuid2TextureMap[guid] = textureMapInfo;
|
||||
EditorGUIUtility.PingObject(textureMapInfo.TextureAtlas);
|
||||
};
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
GameObject.DestroyImmediate(textureAtlas);
|
||||
textureAtlas = null;
|
||||
textureMapInfo.TextureAtlas = null;
|
||||
if (string.IsNullOrEmpty(textureMapInfo.TextureArrayPath))
|
||||
{
|
||||
var savePath = EditorUtility.SaveFilePanelInProject("保存", "", "png", "");
|
||||
if (string.IsNullOrEmpty(savePath))
|
||||
{
|
||||
return;
|
||||
}
|
||||
textureMapInfo.TextureArrayPath = savePath;
|
||||
}
|
||||
|
||||
AsyncGPUReadback.Request(textureArray, 0, 0, textureArray.width, 0, textureArray.height, 0, textureArray.depth, (req) =>
|
||||
{
|
||||
if (!req.hasError)
|
||||
{
|
||||
{
|
||||
using var fr = File.Open(textureMapInfo.TextureArrayPath, FileMode.OpenOrCreate);
|
||||
using MemoryStream memoryStream = new MemoryStream();
|
||||
for (int i = textureArray.depth - 1; i >=0 ; --i)
|
||||
{
|
||||
var array = req.GetData<byte>(i);
|
||||
memoryStream.Write(array);
|
||||
}
|
||||
memoryStream.Seek(0, SeekOrigin.Begin);
|
||||
|
||||
var dataArray = ImageConversion.EncodeArrayToPNG(memoryStream.GetBuffer(), textureArray.graphicsFormat, (uint)textureArray.width, (uint)textureArray.height * (uint)textureArray.depth);
|
||||
fr.Write(dataArray);
|
||||
}
|
||||
|
||||
AssetDatabase.ImportAsset(textureMapInfo.TextureArrayPath);
|
||||
if (TextureImporter.GetAtPath(textureMapInfo.TextureArrayPath) is TextureImporter ti)
|
||||
{
|
||||
ti.SetTextureSettings(new TextureImporterSettings()
|
||||
{
|
||||
textureShape = TextureImporterShape.Texture2DArray,
|
||||
flipbookColumns = 1,
|
||||
flipbookRows = textureArray.depth,
|
||||
sRGBTexture = false,
|
||||
readable = false,
|
||||
mipmapEnabled = true,
|
||||
wrapMode = TextureWrapMode.Clamp,
|
||||
});
|
||||
ti.SaveAndReimport();
|
||||
}
|
||||
|
||||
textureMapInfo.TextureArray = AssetDatabase.LoadAssetAtPath<Texture2DArray>(textureMapInfo.TextureArrayPath);
|
||||
var guid = AssetDatabase.AssetPathToGUID(textureMapInfo.TextureArrayPath);
|
||||
TextureMapIndex.Instance.ResultGuid2TextureMap[guid] = textureMapInfo;
|
||||
EditorGUIUtility.PingObject(textureMapInfo.TextureArray);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
AssetDatabase.SaveAssetIfDirty(TextureMapIndex.Instance);
|
||||
}
|
||||
|
||||
private void Save()
|
||||
{
|
||||
if (AssetDatabase.IsMainAsset(textureMapInfo))
|
||||
{
|
||||
UpdateMapinfoBeforeSave();
|
||||
AssetDatabase.SaveAssetIfDirty(textureMapInfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
var path = EditorUtility.SaveFilePanelInProject("保存映射关系", DateTime.Now.ToString("yy_MM_dd_hhmmss"), "asset", "保存源贴图到 atlas 对应关系", TextureMapInfo.TextureMapDir);
|
||||
if(string.IsNullOrEmpty(path))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
AssetDatabase.CreateAsset(textureMapInfo, path);
|
||||
UpdateMapinfoBeforeSave();
|
||||
AssetDatabase.SaveAssetIfDirty(textureMapInfo);
|
||||
}
|
||||
base.SaveChanges();
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
SetNormalOriginTextureFormat(textureMapInfo.IsNormalMap);
|
||||
AssetDatabase.SaveAssetIfDirty(textureMapInfo);
|
||||
}
|
||||
}
|
||||
12
Assets/Editor/TexturePack/TexturePackerEditor.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2404f4f9e7a763d43bbfb35a692fd4de
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences:
|
||||
- m_VisualTreeAsset: {fileID: 9197481963319205126, guid: c6684732fa3c07d4c8f22c9db825d83f, type: 3}
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
5
Assets/Editor/TexturePack/TexturePackerEditor.uss
Normal file
@ -0,0 +1,5 @@
|
||||
.custom-label {
|
||||
font-size: 20px;
|
||||
-unity-font-style: bold;
|
||||
color: rgb(68, 138, 255);
|
||||
}
|
||||
11
Assets/Editor/TexturePack/TexturePackerEditor.uss.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3573072381d449344b583e330c972639
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
|
||||
disableValidation: 0
|
||||
16
Assets/Editor/TexturePack/TexturePackerEditor.uxml
Normal file
@ -0,0 +1,16 @@
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
|
||||
<Style src="project://database/Assets/Editor/TexturePack/TexturePackerEditor.uss?fileID=7433441132597879392&guid=3573072381d449344b583e330c972639&type=3#TexturePackerEditor" />
|
||||
<uie:Toolbar style="font-size: 16px; height: auto; flex-wrap: nowrap; align-items: auto; align-self: auto; justify-content: flex-start; flex-direction: row;">
|
||||
<ui:Button text="Atlas" parse-escape-sequences="true" display-tooltip-when-elided="true" name="btAtlas" style="visibility: visible; overflow: hidden; opacity: 1; flex-wrap: nowrap; border-top-left-radius: 5px; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 5px; margin-right: 0; font-size: 16px; -unity-background-scale-mode: stretch-to-fill; background-color: rgb(88, 88, 88);" />
|
||||
<ui:Button text="Array" parse-escape-sequences="true" display-tooltip-when-elided="true" name="btArray" style="border-top-left-radius: 0; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 0; margin-left: 0; font-size: 16px; background-color: rgb(88, 88, 88);" />
|
||||
<ui:Label tabindex="-1" text="0" parse-escape-sequences="true" display-tooltip-when-elided="true" name="imgCntLabel" style="flex-direction: row; justify-content: space-between; align-items: auto; align-self: stretch; margin-left: 4px; -unity-text-align: middle-center;" />
|
||||
<ui:Toggle label="法线图" name="tgIsNormal" style="width: 150px; left: auto; right: auto; flex-direction: row; align-items: stretch; justify-content: center; align-self: center; white-space: normal; text-overflow: clip; -unity-text-align: middle-right; margin-right: 2px;" />
|
||||
<ui:SliderInt label="图集间距" high-value="5" name="slAtlasPadding" style="width: 200px; -unity-text-align: middle-right; white-space: nowrap; text-overflow: clip; font-size: 15px;" />
|
||||
<ui:EnumField label="贴图尺寸" type="TexturePackerEditor+ETextureSize, Assembly-CSharp-Editor" value="_512" name="textureSizeEnum" style="width: 181px; justify-content: flex-end; -unity-text-align: upper-right;" />
|
||||
<ui:Button text="Save" parse-escape-sequences="true" display-tooltip-when-elided="true" name="btSave" style="translate: 100px 0;" />
|
||||
</uie:Toolbar>
|
||||
<ui:Label tabindex="-1" text="Label" parse-escape-sequences="true" display-tooltip-when-elided="true" name="infoLabel" style="visibility: hidden;" />
|
||||
<ui:VisualElement style="flex-grow: 1; flex-direction: row; height: 100%;">
|
||||
<ui:IMGUIContainer name="imgList" style="width: 100%; height: 100%; min-height: initial; max-height: none; justify-content: space-around; flex-direction: column;" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
||||
10
Assets/Editor/TexturePack/TexturePackerEditor.uxml.meta
Normal file
@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c6684732fa3c07d4c8f22c9db825d83f
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
8
Assets/Editor/Toast.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 087f6d793c10f674f93ad712b17533a6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
280
Assets/Editor/Toast/Toast.cs
Normal file
@ -0,0 +1,280 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace UnityEditor
|
||||
{
|
||||
internal class Toast : EditorWindow
|
||||
{
|
||||
private const int DWMWA_WINDOW_CORNER_PREFERENCE = 33;
|
||||
|
||||
private enum DWM_WINDOW_CORNER_PREFERENCE
|
||||
{
|
||||
DWMWCP_DEFAULT = 0,
|
||||
DWMWCP_DONOTROUND = 1,
|
||||
DWMWCP_ROUND = 2,
|
||||
DWMWCP_ROUNDSMALL = 3
|
||||
}
|
||||
|
||||
public enum ToastSeverity
|
||||
{
|
||||
Info,
|
||||
Warning,
|
||||
Error
|
||||
}
|
||||
|
||||
public enum ToastPosition
|
||||
{
|
||||
TopLeft,
|
||||
TopRight,
|
||||
TopCenter,
|
||||
BottomLeft,
|
||||
BottomRight,
|
||||
BottomCenter
|
||||
}
|
||||
|
||||
public struct ToastData
|
||||
{
|
||||
public float TimeCreated { get; set; }
|
||||
public ToastArgs ToastArgs { get; set; }
|
||||
}
|
||||
|
||||
public struct ToastArgs
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Message { get; set; }
|
||||
public ToastPosition ToastPosition { get; set; }
|
||||
public float LifeTime { get; set; }
|
||||
public bool NoTimeOut { get; set; }
|
||||
public Func<VisualElement> CustomContent { get; set; }
|
||||
public ToastSeverity Severity { get; set; }
|
||||
}
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
private static extern IntPtr GetActiveWindow();
|
||||
|
||||
[DllImport("dwmapi.dll")]
|
||||
private static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref DWM_WINDOW_CORNER_PREFERENCE pref, int attrLen);
|
||||
|
||||
private const float POSITION_SPEED = 10f;
|
||||
private const float POSITION_THRESHOLD = 0.1f;
|
||||
private const float ROOT_CORNER_RADIUS = 9.2f;
|
||||
private const float ROOT_BORDER_WIDTH = 2f;
|
||||
|
||||
public ToastData Data { get; set; }
|
||||
public ToastArgs Args;
|
||||
|
||||
public event Action<Toast> OnClose;
|
||||
|
||||
private Rect currentPosition;
|
||||
|
||||
private VisualElement titleBar;
|
||||
private Label titleLabel;
|
||||
private Label messageLabel;
|
||||
private Button closeButton;
|
||||
private VisualElement contentContainer;
|
||||
private ProgressBar lifetimeBar;
|
||||
|
||||
public void SetupWindow(ToastData toastData)
|
||||
{
|
||||
Data = toastData;
|
||||
Args = toastData.ToastArgs;
|
||||
position = this.GetEditorWindowPosition(Args.ToastPosition);
|
||||
currentPosition = position;
|
||||
|
||||
titleLabel.text = Args.Title;
|
||||
messageLabel.text = Args.Message;
|
||||
contentContainer.Add(Args.CustomContent?.Invoke());
|
||||
|
||||
var backgroundColor = Args.Severity switch
|
||||
{
|
||||
ToastSeverity.Info => new Color(0.27f, 0.38f, 0.49f),
|
||||
ToastSeverity.Warning => new Color(0.69f, 0.5f, 0.02f),
|
||||
_ => new Color(0.49f, 0f, 0f)
|
||||
};
|
||||
|
||||
lifetimeBar.lowValue = 0;
|
||||
var datatoastArgs = Data.ToastArgs;
|
||||
lifetimeBar.value = lifetimeBar.highValue = datatoastArgs.NoTimeOut ? 1f : datatoastArgs.LifeTime;
|
||||
|
||||
var lifetimeBarContainer = lifetimeBar.Children().First();
|
||||
var lifetimeBarBackground = lifetimeBarContainer.Children().First();
|
||||
var lifetimeBarFill = lifetimeBarBackground.Children().First();
|
||||
if (lifetimeBarFill != null)
|
||||
{
|
||||
lifetimeBarFill.style.backgroundColor = backgroundColor;
|
||||
}
|
||||
|
||||
titleBar.style.backgroundColor = backgroundColor;
|
||||
|
||||
closeButton.RegisterCallback<PointerEnterEvent>(evt =>
|
||||
{
|
||||
closeButton.style.backgroundColor = backgroundColor;
|
||||
});
|
||||
|
||||
closeButton.RegisterCallback<PointerLeaveEvent>(evt =>
|
||||
{
|
||||
closeButton.style.backgroundColor = new Color(0.31f, 0.31f, 0.31f);
|
||||
});
|
||||
|
||||
EnableRoundedCorners();
|
||||
}
|
||||
|
||||
private void EnableRoundedCorners()
|
||||
{
|
||||
IntPtr hwnd = GetActiveWindow();
|
||||
if (hwnd != IntPtr.Zero)
|
||||
{
|
||||
DWM_WINDOW_CORNER_PREFERENCE pref = DWM_WINDOW_CORNER_PREFERENCE.DWMWCP_ROUND;
|
||||
DwmSetWindowAttribute(hwnd, DWMWA_WINDOW_CORNER_PREFERENCE, ref pref, sizeof(int));
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning("Failed to get window handle.");
|
||||
}
|
||||
}
|
||||
|
||||
private void CreateGUI()
|
||||
{
|
||||
rootVisualElement.style.borderTopWidth = ROOT_BORDER_WIDTH;
|
||||
rootVisualElement.style.borderBottomWidth = ROOT_BORDER_WIDTH;
|
||||
rootVisualElement.style.borderLeftWidth = ROOT_BORDER_WIDTH;
|
||||
rootVisualElement.style.borderRightWidth = ROOT_BORDER_WIDTH;
|
||||
rootVisualElement.style.borderTopColor = Color.black;
|
||||
rootVisualElement.style.borderBottomColor = Color.black;
|
||||
rootVisualElement.style.borderLeftColor = Color.black;
|
||||
rootVisualElement.style.borderRightColor = Color.black;
|
||||
rootVisualElement.style.borderTopLeftRadius = ROOT_CORNER_RADIUS;
|
||||
rootVisualElement.style.borderTopRightRadius = ROOT_CORNER_RADIUS;
|
||||
rootVisualElement.style.borderBottomLeftRadius = ROOT_CORNER_RADIUS;
|
||||
rootVisualElement.style.borderBottomRightRadius = ROOT_CORNER_RADIUS;
|
||||
|
||||
titleBar = new VisualElement
|
||||
{
|
||||
style =
|
||||
{
|
||||
height = 20f,
|
||||
minHeight = 20f,
|
||||
width = new StyleLength(Length.Percent(100)),
|
||||
maxWidth = new StyleLength(Length.Percent(100)),
|
||||
flexDirection = FlexDirection.Row,
|
||||
borderBottomWidth = 1f,
|
||||
borderBottomColor = Color.black
|
||||
}
|
||||
};
|
||||
rootVisualElement.Add(titleBar);
|
||||
{
|
||||
titleLabel = new Label()
|
||||
{
|
||||
style =
|
||||
{
|
||||
flexGrow = 1f,
|
||||
unityFontStyleAndWeight = FontStyle.Bold,
|
||||
fontSize = 13f,
|
||||
unityTextAlign = TextAnchor.MiddleLeft
|
||||
}
|
||||
};
|
||||
titleBar.Add(titleLabel);
|
||||
|
||||
closeButton = new Button(Close)
|
||||
{
|
||||
text = "X",
|
||||
style =
|
||||
{
|
||||
flexGrow = 0f,
|
||||
width = 20f,
|
||||
minWidth = 20f,
|
||||
borderBottomWidth = 0f,
|
||||
borderLeftWidth = 1f,
|
||||
borderRightWidth = 0f,
|
||||
borderTopWidth = 0f,
|
||||
borderTopLeftRadius = 0f,
|
||||
borderTopRightRadius = 0f,
|
||||
borderBottomRightRadius = 0f,
|
||||
borderBottomLeftRadius = 0f,
|
||||
marginRight = 0f,
|
||||
marginLeft = 0f,
|
||||
marginTop = 0f,
|
||||
marginBottom = 0f
|
||||
}
|
||||
};
|
||||
titleBar.Add(closeButton);
|
||||
}
|
||||
|
||||
lifetimeBar = new ProgressBar
|
||||
{
|
||||
style =
|
||||
{
|
||||
marginBottom = 0f,
|
||||
marginLeft = 0f,
|
||||
marginRight = 0f,
|
||||
marginTop = 0f,
|
||||
height = 6f,
|
||||
minHeight = 6f,
|
||||
maxHeight = 6f
|
||||
}
|
||||
};
|
||||
rootVisualElement.Add(lifetimeBar);
|
||||
|
||||
var messageContainer = new VisualElement();
|
||||
rootVisualElement.Add(messageContainer);
|
||||
{
|
||||
messageLabel = new Label
|
||||
{
|
||||
style =
|
||||
{
|
||||
marginTop = 2f,
|
||||
marginBottom = 2f,
|
||||
marginLeft = 2f,
|
||||
marginRight = 2f,
|
||||
}
|
||||
};
|
||||
messageContainer.Add(messageLabel);
|
||||
}
|
||||
|
||||
contentContainer = new VisualElement();
|
||||
rootVisualElement.Add(contentContainer);
|
||||
}
|
||||
|
||||
public float GetHeight() => position.height;
|
||||
|
||||
public void UpdatePosition(Rect positionRect, float currentHeightOffset, double deltaTime)
|
||||
{
|
||||
var targetPosition = new Rect(positionRect.x, positionRect.y + currentHeightOffset, positionRect.width, positionRect.height);
|
||||
|
||||
if (Mathf.Abs(currentPosition.y - targetPosition.y) < POSITION_THRESHOLD)
|
||||
{
|
||||
currentPosition.y = targetPosition.y;
|
||||
position = currentPosition;
|
||||
}
|
||||
else
|
||||
{
|
||||
var newY = Mathf.Lerp(
|
||||
currentPosition.y,
|
||||
targetPosition.y,
|
||||
(float)(POSITION_SPEED * deltaTime)
|
||||
);
|
||||
currentPosition.y = newY;
|
||||
currentPosition.x = targetPosition.x;
|
||||
|
||||
position = currentPosition;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsLifetimeOver()
|
||||
{
|
||||
if (Args.NoTimeOut) return false;
|
||||
|
||||
var currentLifeTime = Time.time - Data.TimeCreated;
|
||||
lifetimeBar.value = Args.LifeTime - currentLifeTime;
|
||||
return currentLifeTime > Args.LifeTime;
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
OnClose?.Invoke(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Editor/Toast/Toast.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a4ee447634db23c4ba147df9d96ff3eb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
68
Assets/Editor/Toast/ToastHelpers.cs
Normal file
@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine;
|
||||
using static UnityEditor.Toast;
|
||||
|
||||
namespace UnityEditor
|
||||
{
|
||||
public static class ToastHelpers
|
||||
{
|
||||
private static readonly Vector4 WINDOW_PADDING = new Vector4(10f, 30f, 80f, 10f);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
private static extern bool GetWindowRect(IntPtr hwnd, ref Rect rectangle);
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
private struct Rect
|
||||
{
|
||||
public int Left { get; set; }
|
||||
public int Top { get; set; }
|
||||
public int Right { get; set; }
|
||||
public int Bottom { get; set; }
|
||||
|
||||
public UnityEngine.Rect ToUnityRect()
|
||||
{
|
||||
return new UnityEngine.Rect(Left, Top, Right - Left, Bottom - Top);
|
||||
}
|
||||
}
|
||||
|
||||
internal static UnityEngine.Rect GetEditorWindowPosition(this EditorWindow window, ToastPosition corner)
|
||||
{
|
||||
Vector2 windowSize = window.position.size;
|
||||
|
||||
Rect editorRect = new Rect();
|
||||
GetWindowRect(Process.GetCurrentProcess().MainWindowHandle, ref editorRect);
|
||||
UnityEngine.Rect unityEditorRect = editorRect.ToUnityRect();
|
||||
|
||||
Vector2 position = CalculatePosition(corner, unityEditorRect, windowSize);
|
||||
return new UnityEngine.Rect(position.x, position.y, windowSize.x, windowSize.y);
|
||||
}
|
||||
|
||||
private static Vector2 CalculatePosition(ToastPosition corner, UnityEngine.Rect editorRect, Vector2 windowSize)
|
||||
{
|
||||
return corner switch
|
||||
{
|
||||
ToastPosition.TopLeft => new Vector2(
|
||||
editorRect.x + WINDOW_PADDING.w,
|
||||
editorRect.y + WINDOW_PADDING.z),
|
||||
ToastPosition.TopRight => new Vector2(
|
||||
editorRect.xMax - windowSize.x - WINDOW_PADDING.x,
|
||||
editorRect.y + WINDOW_PADDING.z),
|
||||
ToastPosition.TopCenter => new Vector2(
|
||||
editorRect.center.x - windowSize.x / 2 - WINDOW_PADDING.x,
|
||||
editorRect.y + WINDOW_PADDING.z),
|
||||
ToastPosition.BottomLeft => new Vector2(
|
||||
editorRect.x + WINDOW_PADDING.w,
|
||||
editorRect.yMax - windowSize.y - WINDOW_PADDING.y),
|
||||
ToastPosition.BottomRight => new Vector2(
|
||||
editorRect.xMax - windowSize.x - WINDOW_PADDING.x,
|
||||
editorRect.yMax - windowSize.y - WINDOW_PADDING.y),
|
||||
ToastPosition.BottomCenter => new Vector2(
|
||||
editorRect.center.x - windowSize.x / 2 - WINDOW_PADDING.x,
|
||||
editorRect.yMax - windowSize.y - WINDOW_PADDING.y),
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(corner), corner, null)
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Editor/Toast/ToastHelpers.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 37ad6836e727b8a45adbf7ab3a6826cd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
315
Assets/Editor/Toast/ToastManager.cs
Normal file
@ -0,0 +1,315 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using static UnityEditor.Toast;
|
||||
|
||||
namespace UnityEditor
|
||||
{
|
||||
internal static class ToastManager
|
||||
{
|
||||
private const float NOTIFICATION_MARGIN = 5f;
|
||||
private const double TARGET_FRAME_TIME = 1.0 / 30.0;
|
||||
|
||||
private static readonly List<Toast> topLeftNotifications = new();
|
||||
private static readonly List<Toast> topRightNotifications = new();
|
||||
private static readonly List<Toast> topCenterNotifications = new();
|
||||
private static readonly List<Toast> bottomLeftNotifications = new();
|
||||
private static readonly List<Toast> bottomRightNotifications = new();
|
||||
private static readonly List<Toast> bottomCenterNotifications = new();
|
||||
|
||||
private static int notificationCount = 0;
|
||||
|
||||
[InitializeOnLoadMethod]
|
||||
private static void Init()
|
||||
{
|
||||
AssemblyReloadEvents.beforeAssemblyReload += OnBeforeDomainReload;
|
||||
|
||||
EnsureUpdateHook();
|
||||
|
||||
EditorApplication.QueuePlayerLoopUpdate();
|
||||
}
|
||||
|
||||
private static void EnsureUpdateHook()
|
||||
{
|
||||
EditorApplication.update -= CustomUpdateLoop;
|
||||
EditorApplication.update += CustomUpdateLoop;
|
||||
}
|
||||
|
||||
private static void OnBeforeDomainReload()
|
||||
{
|
||||
//close all notifications on domain reload
|
||||
EditorApplication.update -= CustomUpdateLoop;
|
||||
|
||||
for (var index = topLeftNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = topLeftNotifications[index];
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
|
||||
for (var index = topRightNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = topRightNotifications[index];
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
|
||||
for (var index = topCenterNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = topCenterNotifications[index];
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
|
||||
for (var index = bottomLeftNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = bottomLeftNotifications[index];
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
|
||||
for (var index = bottomRightNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = bottomRightNotifications[index];
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
|
||||
for (var index = bottomCenterNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = bottomCenterNotifications[index];
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
}
|
||||
|
||||
private static void CustomUpdateLoop()
|
||||
{
|
||||
if (notificationCount <= 0) return;
|
||||
|
||||
UpdateNotifications(TARGET_FRAME_TIME);
|
||||
|
||||
if (!EditorApplication.isPlaying || notificationCount > 0)
|
||||
{
|
||||
EditorApplication.delayCall += () =>
|
||||
{
|
||||
EditorWindow.focusedWindow?.Repaint();
|
||||
SceneView.RepaintAll();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
private static void UpdateNotifications(double deltaTime)
|
||||
{
|
||||
CheckNotificationLifetimes();
|
||||
|
||||
UpdateNotificationPositions(deltaTime);
|
||||
}
|
||||
|
||||
private static void CheckNotificationLifetimes()
|
||||
{
|
||||
for (var index = topLeftNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = topLeftNotifications[index];
|
||||
if (!notification.IsLifetimeOver()) continue;
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
|
||||
for (var index = topRightNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = topRightNotifications[index];
|
||||
if (!notification.IsLifetimeOver()) continue;
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
|
||||
for (var index = topCenterNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = topCenterNotifications[index];
|
||||
if (!notification.IsLifetimeOver()) continue;
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
|
||||
for (var index = bottomLeftNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = bottomLeftNotifications[index];
|
||||
if (!notification.IsLifetimeOver()) continue;
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
|
||||
for (var index = bottomRightNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = bottomRightNotifications[index];
|
||||
if (!notification.IsLifetimeOver()) continue;
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
|
||||
for (var index = bottomCenterNotifications.Count - 1; index >= 0; index--)
|
||||
{
|
||||
var notification = bottomCenterNotifications[index];
|
||||
if (!notification.IsLifetimeOver()) continue;
|
||||
RemoveNotification(notification);
|
||||
notification.Close();
|
||||
}
|
||||
}
|
||||
|
||||
private static void UpdateNotificationPositions(double deltaTime)
|
||||
{
|
||||
UpdateNotificationPositions(ToastPosition.TopLeft, deltaTime);
|
||||
UpdateNotificationPositions(ToastPosition.TopRight, deltaTime);
|
||||
UpdateNotificationPositions(ToastPosition.TopCenter, deltaTime);
|
||||
UpdateNotificationPositions(ToastPosition.BottomLeft, deltaTime);
|
||||
UpdateNotificationPositions(ToastPosition.BottomRight, deltaTime);
|
||||
UpdateNotificationPositions(ToastPosition.BottomCenter, deltaTime);
|
||||
}
|
||||
|
||||
public static void ShowNotification(ToastArgs toastArgs, Vector2 windowSize = default)
|
||||
{
|
||||
EnsureUpdateHook();
|
||||
|
||||
//Create the window
|
||||
var notification = ScriptableObject.CreateInstance<Toast>();
|
||||
|
||||
notification.titleContent = new GUIContent($"Notification - {toastArgs.Title}");
|
||||
notification.minSize = windowSize == default ? new Vector2(250, 100) : windowSize;
|
||||
notification.maxSize = notification.minSize;
|
||||
notification.position = new Rect(0, 0, notification.minSize.x, notification.minSize.y);
|
||||
notification.ShowPopup();
|
||||
|
||||
notification.OnClose += RemoveNotification;
|
||||
|
||||
//Set position
|
||||
notification.SetupWindow(new ToastData
|
||||
{
|
||||
ToastArgs = toastArgs,
|
||||
TimeCreated = Time.time,
|
||||
});
|
||||
|
||||
//Update other notifications
|
||||
AddNotification(notification);
|
||||
|
||||
}
|
||||
|
||||
private static void AddNotification(Toast toast)
|
||||
{
|
||||
switch (toast.Args.ToastPosition)
|
||||
{
|
||||
case ToastPosition.TopLeft:
|
||||
topLeftNotifications.Insert(0, toast);
|
||||
break;
|
||||
case ToastPosition.TopRight:
|
||||
topRightNotifications.Insert(0, toast);
|
||||
break;
|
||||
case ToastPosition.TopCenter:
|
||||
topCenterNotifications.Insert(0, toast);
|
||||
break;
|
||||
case ToastPosition.BottomLeft:
|
||||
bottomLeftNotifications.Insert(0, toast);
|
||||
break;
|
||||
case ToastPosition.BottomRight:
|
||||
bottomRightNotifications.Insert(0, toast);
|
||||
break;
|
||||
case ToastPosition.BottomCenter:
|
||||
bottomCenterNotifications.Insert(0, toast);
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(null);
|
||||
}
|
||||
|
||||
notificationCount++;
|
||||
}
|
||||
|
||||
private static void RemoveNotification(Toast toast)
|
||||
{
|
||||
toast.OnClose -= RemoveNotification;
|
||||
switch (toast.Args.ToastPosition)
|
||||
{
|
||||
case ToastPosition.TopLeft:
|
||||
topLeftNotifications.Remove(toast);
|
||||
break;
|
||||
case ToastPosition.TopRight:
|
||||
topRightNotifications.Remove(toast);
|
||||
break;
|
||||
case ToastPosition.TopCenter:
|
||||
topCenterNotifications.Remove(toast);
|
||||
break;
|
||||
case ToastPosition.BottomLeft:
|
||||
bottomLeftNotifications.Remove(toast);
|
||||
break;
|
||||
case ToastPosition.BottomRight:
|
||||
bottomRightNotifications.Remove(toast);
|
||||
break;
|
||||
case ToastPosition.BottomCenter:
|
||||
bottomCenterNotifications.Remove(toast);
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(null);
|
||||
}
|
||||
|
||||
notificationCount--;
|
||||
}
|
||||
|
||||
private static void UpdateNotificationPositions(ToastPosition toastPosition, double deltaTime)
|
||||
{
|
||||
var currentHeightOffset = 0f;
|
||||
switch (toastPosition)
|
||||
{
|
||||
case ToastPosition.TopLeft:
|
||||
foreach (var currentNotification in topLeftNotifications)
|
||||
{
|
||||
var positionRect = currentNotification.GetEditorWindowPosition(toastPosition);
|
||||
currentNotification.UpdatePosition(positionRect, currentHeightOffset, deltaTime);
|
||||
currentHeightOffset += currentNotification.GetHeight() + NOTIFICATION_MARGIN;
|
||||
}
|
||||
break;
|
||||
case ToastPosition.TopRight:
|
||||
foreach (var currentNotification in topRightNotifications)
|
||||
{
|
||||
var positionRect = currentNotification.GetEditorWindowPosition(toastPosition);
|
||||
currentNotification.UpdatePosition(positionRect, currentHeightOffset, deltaTime);
|
||||
currentHeightOffset += currentNotification.GetHeight() + NOTIFICATION_MARGIN;
|
||||
}
|
||||
break;
|
||||
case ToastPosition.TopCenter:
|
||||
foreach (var currentNotification in topCenterNotifications)
|
||||
{
|
||||
var positionRect = currentNotification.GetEditorWindowPosition(toastPosition);
|
||||
currentNotification.UpdatePosition(positionRect, currentHeightOffset, deltaTime);
|
||||
currentHeightOffset += currentNotification.GetHeight() + NOTIFICATION_MARGIN;
|
||||
}
|
||||
break;
|
||||
case ToastPosition.BottomLeft:
|
||||
foreach (var currentNotification in bottomLeftNotifications)
|
||||
{
|
||||
var positionRect = currentNotification.GetEditorWindowPosition(toastPosition);
|
||||
currentNotification.UpdatePosition(positionRect, currentHeightOffset, deltaTime);
|
||||
currentHeightOffset -= currentNotification.GetHeight() + NOTIFICATION_MARGIN;
|
||||
}
|
||||
break;
|
||||
case ToastPosition.BottomRight:
|
||||
foreach (var currentNotification in bottomRightNotifications)
|
||||
{
|
||||
var positionRect = currentNotification.GetEditorWindowPosition(toastPosition);
|
||||
currentNotification.UpdatePosition(positionRect, currentHeightOffset, deltaTime);
|
||||
currentHeightOffset -= currentNotification.GetHeight() + NOTIFICATION_MARGIN;
|
||||
}
|
||||
break;
|
||||
case ToastPosition.BottomCenter:
|
||||
foreach (var currentNotification in bottomCenterNotifications)
|
||||
{
|
||||
var positionRect = currentNotification.GetEditorWindowPosition(toastPosition);
|
||||
currentNotification.UpdatePosition(positionRect, currentHeightOffset, deltaTime);
|
||||
currentHeightOffset -= currentNotification.GetHeight() + NOTIFICATION_MARGIN;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(toastPosition), toastPosition, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Editor/Toast/ToastManager.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 139b75263d3a3114284081ea2fa45c0f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Scenes/Cockpit/OffsetMap.png
Normal file
|
After Width: | Height: | Size: 72 B |
@ -1,9 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9840c959c70baa041b9679de47ac8262
|
||||
guid: 23bca372b3a59a54cbf1fd4e61df5dad
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
@ -22,7 +22,7 @@ TextureImporter:
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
@ -35,11 +35,11 @@ TextureImporter:
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 3
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
@ -51,10 +51,10 @@ TextureImporter:
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 0
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 6
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
@ -72,19 +72,6 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
@ -94,7 +81,7 @@ TextureImporter:
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
@ -1,5 +1,5 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:yousandi.cn,2023:
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-7515216427237867766
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
|
||||
@ -0,0 +1,135 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-7515216427237867766
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 7
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Tatami_01_Mat_array
|
||||
m_Shader: {fileID: 4800000, guid: 152a680b0196dcb42b07eb8946d46a22, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _METALLICSPECGLOSSMAP
|
||||
- _NORMALMAP
|
||||
- _OCCLUSIONMAP
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 18700000, guid: 81bf274a1ba706c4ca7180b74f0e6573, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 18700000, guid: 09dc3531888d01d40b256d2c9a2f8d66, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 62a1c70c49ee48949804a1b9704d98f4, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 18700000, guid: ae2eeefc3357ce548a81dd1d931413bf, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 18700000, guid: bc54459c3b598604b9c5a09f4394f985, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_Lightmaps:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_LightmapsInd:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_ShadowMasks:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _AlphaClip: 0
|
||||
- _AlphaToMask: 0
|
||||
- _Blend: 0
|
||||
- _BlendModePreserveSpecular: 1
|
||||
- _BumpScale: 1
|
||||
- _ClearCoatMask: 0
|
||||
- _ClearCoatSmoothness: 0
|
||||
- _Cull: 2
|
||||
- _Cutoff: 0.5
|
||||
- _DetailAlbedoMapScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _DstBlendAlpha: 0
|
||||
- _EnvironmentReflections: 1
|
||||
- _GlossMapScale: 0
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 0
|
||||
- _Metallic: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.005
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 1
|
||||
- _Smoothness: 0.802
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _SrcBlendAlpha: 1
|
||||
- _Surface: 0
|
||||
- _WorkflowMode: 1
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 679e6d490695427429475fbb1c3d4a41
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,140 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-7515216427237867766
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 7
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Tatami_01_Mat_atlas
|
||||
m_Shader: {fileID: 4800000, guid: d8b23892e300d52429dc66b098a9c9fc, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _METALLICSPECGLOSSMAP
|
||||
- _NORMALMAP
|
||||
- _OCCLUSIONMAP
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 2800000, guid: 61c0e3aad5c7bcd4cb5a3b072ce62417, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 2800000, guid: 6572f548082a595459f1531424a252f4, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 62a1c70c49ee48949804a1b9704d98f4, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 2800000, guid: ff4f3681a7495974b9475e47d0559608, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 2800000, guid: ff4f3681a7495974b9475e47d0559608, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _atlasOffset:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_Lightmaps:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_LightmapsInd:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_ShadowMasks:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _AlphaClip: 0
|
||||
- _AlphaToMask: 0
|
||||
- _Blend: 0
|
||||
- _BlendModePreserveSpecular: 1
|
||||
- _BumpScale: 1
|
||||
- _ClearCoatMask: 0
|
||||
- _ClearCoatSmoothness: 0
|
||||
- _Cull: 2
|
||||
- _Cutoff: 0.5
|
||||
- _DetailAlbedoMapScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _DstBlendAlpha: 0
|
||||
- _EnvironmentReflections: 1
|
||||
- _GlossMapScale: 0
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 0
|
||||
- _Metallic: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.08
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 1
|
||||
- _Smoothness: 0.9
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _SrcBlendAlpha: 1
|
||||
- _Surface: 0
|
||||
- _WorkflowMode: 1
|
||||
- _ZWrite: 1
|
||||
- _atlasScale: 0.5
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 19ec4ad90cd554248892593afea337c9
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -37,7 +37,7 @@ ModelImporter:
|
||||
extraExposedTransformPaths: []
|
||||
extraUserProperties: []
|
||||
clipAnimations: []
|
||||
isReadable: 0
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
@ -45,6 +45,7 @@ ModelImporter:
|
||||
addColliders: 0
|
||||
useSRGBMaterialColor: 1
|
||||
sortHierarchyByName: 1
|
||||
importPhysicalCameras: 1
|
||||
importVisibility: 1
|
||||
importBlendShapes: 1
|
||||
importCameras: 1
|
||||
|
||||
@ -3,7 +3,7 @@ guid: 79a19c16c1fb33b499cd26ba2552dedc
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
@ -57,8 +57,8 @@ TextureImporter:
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
flipbookRows: 2
|
||||
flipbookColumns: 4
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
@ -77,6 +77,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -89,6 +90,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -101,6 +103,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -113,6 +116,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -125,6 +129,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
|
||||
@ -3,7 +3,7 @@ guid: 0cdf7154483eb934e8f18f84c31ae2a6
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
@ -20,11 +20,12 @@ TextureImporter:
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
@ -39,7 +40,7 @@ TextureImporter:
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
@ -63,17 +64,20 @@ TextureImporter:
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 1
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureFormat: 4
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -86,6 +90,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -98,6 +103,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
@ -114,9 +120,8 @@ TextureImporter:
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
@ -42,7 +42,7 @@ ModelImporter:
|
||||
extraExposedTransformPaths: []
|
||||
extraUserProperties: []
|
||||
clipAnimations: []
|
||||
isReadable: 0
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages:
|
||||
- 0.25
|
||||
@ -53,6 +53,7 @@ ModelImporter:
|
||||
addColliders: 0
|
||||
useSRGBMaterialColor: 1
|
||||
sortHierarchyByName: 1
|
||||
importPhysicalCameras: 1
|
||||
importVisibility: 1
|
||||
importBlendShapes: 1
|
||||
importCameras: 1
|
||||
|
||||
@ -3,7 +3,7 @@ guid: 2b822baaa6fd9eb43ad1b9ad8c229f71
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
@ -57,8 +57,8 @@ TextureImporter:
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
flipbookRows: 2
|
||||
flipbookColumns: 2
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
@ -77,6 +77,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -89,6 +90,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -101,6 +103,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -113,6 +116,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -125,6 +129,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
|
||||
@ -3,7 +3,7 @@ guid: 5e08faf4c9e76684ab8a1a481f6a3922
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
@ -72,11 +72,12 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
textureCompression: 2
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -89,6 +90,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -101,6 +103,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
|
||||
@ -7,7 +7,7 @@ TextureImporter:
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
|
||||
@ -3,11 +3,11 @@ guid: 9b4e4b5b426f4db439897a2e39cf9c55
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
@ -72,11 +72,12 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 2
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -89,6 +90,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -101,6 +103,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
|
||||
@ -3,7 +3,7 @@ guid: ea2e14fa369ba674aaa689e56d90fd60
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
@ -69,7 +69,7 @@ TextureImporter:
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
maxTextureSize: 256
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
@ -77,6 +77,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -89,6 +90,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -101,6 +103,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -113,6 +116,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -125,6 +129,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
|
||||
@ -3,7 +3,7 @@ guid: a5bfb97ceb81b244cb97df741fe3953c
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
@ -71,24 +71,26 @@ TextureImporter:
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureFormat: 4
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureFormat: 12
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -101,6 +103,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
|
||||
@ -96,7 +96,7 @@ LightmapSettings:
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 112000000, guid: 4c499845f447c484fb847ad545b279b9, type: 2}
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_LightingSettings: {fileID: 4890085278179872738, guid: 0d0c0e1fb12268e4094fa8a75a88fbd1, type: 2}
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
@ -26140,6 +26140,103 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 850090352428292972, guid: 510f46f3a0879db4fb039379b00019ac, type: 3}
|
||||
m_PrefabInstance: {fileID: 448743528}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &455698360
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 455698361}
|
||||
- component: {fileID: 455698363}
|
||||
- component: {fileID: 455698362}
|
||||
- component: {fileID: 455698364}
|
||||
m_Layer: 0
|
||||
m_Name: Stone_Walkway_03_LOD0 (1)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 126
|
||||
m_IsActive: 1
|
||||
--- !u!4 &455698361
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 455698360}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0.9393464, y: -0.016844312, z: -0.3424226, w: -0.009562336}
|
||||
m_LocalPosition: {x: 0.47, y: 0, z: 0.077}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 540395121}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!23 &455698362
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 455698360}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 679e6d490695427429475fbb1c3d4a41, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 536985543}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!33 &455698363
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 455698360}
|
||||
m_Mesh: {fileID: 3664227133476954094, guid: 8694e03786ace84448d95abe2c203df9, type: 3}
|
||||
--- !u!114 &455698364
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 455698360}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a8f562490b8d41b47a6b21e2f514d782, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
transform: {fileID: 0}
|
||||
--- !u!1001 &459277921
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -29638,6 +29735,11 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 850090352428292972, guid: 510f46f3a0879db4fb039379b00019ac, type: 3}
|
||||
m_PrefabInstance: {fileID: 536985541}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &536985543 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 778818562828697793, guid: 510f46f3a0879db4fb039379b00019ac, type: 3}
|
||||
m_PrefabInstance: {fileID: 536985541}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &537383128
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -29909,6 +30011,39 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 5745342502191006184, guid: 3e945be391045ae46bcffd66163af7cf, type: 3}
|
||||
m_PrefabInstance: {fileID: 538569573}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &540395120
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 540395121}
|
||||
m_Layer: 0
|
||||
m_Name: GameObject
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &540395121
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 540395120}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -16.072124, y: 1.4, z: 75.99683}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 671925056}
|
||||
- {fileID: 455698361}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &540501040
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -30761,6 +30896,10 @@ PrefabInstance:
|
||||
propertyPath: m_IsActive
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5746959808393157105, guid: 219931e2e864deb4fbe455ce8da6f5a5, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
@ -37627,6 +37766,93 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 8779200753875324562, guid: 3842f68affde3454ea9ec2e33b16dda0, type: 3}
|
||||
m_PrefabInstance: {fileID: 670155465}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &671925055
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 540395121}
|
||||
m_Modifications:
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: -1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -0.435
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: -0.525
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -0.672
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0.00000086426724
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -7511558181221131132, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 679e6d490695427429475fbb1c3d4a41, type: 2}
|
||||
- target: {fileID: 919132149155446097, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Tatami_200x100_02_Mesh (1)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 919132149155446097, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_StaticEditorFlags
|
||||
value: 2147483647
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents:
|
||||
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 671925058}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
--- !u!4 &671925056 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
m_PrefabInstance: {fileID: 671925055}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &671925057 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
m_PrefabInstance: {fileID: 671925055}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &671925058
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 671925057}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a8f562490b8d41b47a6b21e2f514d782, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
transform: {fileID: 0}
|
||||
--- !u!1001 &672159305
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -59469,6 +59695,93 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 3094322270465151314, guid: 71418bea553194f4d8c3ec9179bbc437, type: 3}
|
||||
m_PrefabInstance: {fileID: 1082713594}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &1084083759
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1114457523}
|
||||
m_Modifications:
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: -1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -0.435
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: -0.525
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -0.672
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0.00000086426724
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -7511558181221131132, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 19ec4ad90cd554248892593afea337c9, type: 2}
|
||||
- target: {fileID: 919132149155446097, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Tatami_200x100_02_Mesh (1)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 919132149155446097, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
propertyPath: m_StaticEditorFlags
|
||||
value: 2147483647
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents:
|
||||
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 1084083762}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
--- !u!4 &1084083760 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
m_PrefabInstance: {fileID: 1084083759}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1084083761 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 7e4c5b8e69116ee4ea5a82af369f63a7, type: 3}
|
||||
m_PrefabInstance: {fileID: 1084083759}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &1084083762
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1084083761}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a8f562490b8d41b47a6b21e2f514d782, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
transform: {fileID: 0}
|
||||
--- !u!1001 &1085224720
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -61351,6 +61664,39 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 2935755031601085468, guid: fa21c78222ed22140afacbdac3c0f43a, type: 3}
|
||||
m_PrefabInstance: {fileID: 1113829503}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1114457522
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1114457523}
|
||||
m_Layer: 0
|
||||
m_Name: GameObject (1)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1114457523
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1114457522}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -16.072124, y: 1.4, z: 77.741}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1084083760}
|
||||
- {fileID: 1299548402}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &1115071776
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -71051,6 +71397,103 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 1543855012373510215, guid: 10dc08df9d35af0438759cd8981887db, type: 3}
|
||||
m_PrefabInstance: {fileID: 1294275511}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1299548401
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1299548402}
|
||||
- component: {fileID: 1299548405}
|
||||
- component: {fileID: 1299548404}
|
||||
- component: {fileID: 1299548403}
|
||||
m_Layer: 0
|
||||
m_Name: Stone_Walkway_03_LOD0 (1)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 126
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1299548402
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1299548401}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0.9393464, y: -0.016844312, z: -0.3424226, w: -0.009562336}
|
||||
m_LocalPosition: {x: 0.47, y: 0, z: 0.077}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1114457523}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1299548403
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1299548401}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a8f562490b8d41b47a6b21e2f514d782, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
transform: {fileID: 0}
|
||||
--- !u!23 &1299548404
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1299548401}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 19ec4ad90cd554248892593afea337c9, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 536985543}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!33 &1299548405
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1299548401}
|
||||
m_Mesh: {fileID: 3664227133476954094, guid: 8694e03786ace84448d95abe2c203df9, type: 3}
|
||||
--- !u!1001 &1299703204
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -89828,71 +90271,6 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 3222786974498240390, guid: e4f829552ff027340afbaed5e87ba9d9, type: 3}
|
||||
m_PrefabInstance: {fileID: 1636801640}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &1642142997
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: -8679921383154817045, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -17.24971
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.95578253
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 73.25475
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -6126673751231732936, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_Materials.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 76a063ea2cf7334499992b59e33a81de, type: 2}
|
||||
- target: {fileID: 919132149155446097, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: JM_WuJian_TianChuang003
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5504113258885105547, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
propertyPath: m_Enabled
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 0de700f626a08c44091a03511a8d7388, type: 3}
|
||||
--- !u!1001 &1642665822
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -120730,4 +121108,5 @@ SceneRoots:
|
||||
- {fileID: 966895463892816108}
|
||||
- {fileID: 226723377}
|
||||
- {fileID: 1996431148}
|
||||
- {fileID: 1642142997}
|
||||
- {fileID: 540395121}
|
||||
- {fileID: 1114457523}
|
||||
|
||||
|
Before Width: | Height: | Size: 5.7 MiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 5.6 MiB |
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 353fcc3a706eec341b9821174e839899
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 1
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 3
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 0
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 6
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
Before Width: | Height: | Size: 266 KiB |
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 52f2378762042a042a3d4f0f1130e3d4
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 1
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 3
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 0
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 11
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
Before Width: | Height: | Size: 84 KiB |
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98b34922e0ee8ea44a2d4faa62dd7445
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 1
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 3
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 0
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 6
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
Before Width: | Height: | Size: 2.4 KiB |
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: efd5e1478386bf3499791594f7cb28c7
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 1
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 3
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 0
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 11
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1087db84c5910774087483ed7b7c7b80
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 1
|
||||
seamlessCubemap: 1
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 2
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 100
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98d9ff76453e24f45be4c5847147e9ee
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 1
|
||||
seamlessCubemap: 1
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 2
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 100
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 63ff5cf9b6bb09541973249004e9fd6b
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 1
|
||||
seamlessCubemap: 1
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 2
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 100
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 66670f0510a478f4ebebe9c9e30f4212
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 1
|
||||
seamlessCubemap: 1
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 2
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 100
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b8c61dde252a1ae44ab5172aac545598
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 1
|
||||
seamlessCubemap: 1
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 2
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 100
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 474832940b13e6547916ace39d19b37c
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 1
|
||||
seamlessCubemap: 1
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 2
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 100
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c2ed1b7e0a1f6bc48b7153d00e2b9961
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 1
|
||||
seamlessCubemap: 1
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 2
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 100
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 67bddf818ca24174897501b1e8a3a0fa
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 1
|
||||
seamlessCubemap: 1
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 2
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 100
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,127 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f674fba72510434f89d4ad3f439c274
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 1
|
||||
seamlessCubemap: 1
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 2
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 100
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -3,7 +3,7 @@ guid: 789fbaf63b7ed024ab83275e00ef0460
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
|
||||
@ -3,7 +3,7 @@ guid: 07a6d0e57a3ecf045a4c126e11857e16
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
@ -77,6 +77,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -89,6 +90,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -101,6 +103,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
|
||||
@ -3,7 +3,7 @@ guid: 0fe9d9cf76b17d7439a37e14b9efecec
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
@ -64,7 +64,7 @@ TextureImporter:
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
swizzle: 131328
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
@ -77,6 +77,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -89,6 +90,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
@ -101,6 +103,7 @@ TextureImporter:
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
|
||||
BIN
Assets/Scenes/OffsetMap.png
Normal file
|
After Width: | Height: | Size: 72 B |
@ -1,12 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c7ce24e97e8d6e249b68a142048f6c0f
|
||||
guid: ccc39ca9faa071349bc978dec1bf4cb0
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
@ -22,7 +22,7 @@ TextureImporter:
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
@ -34,8 +34,8 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 3
|
||||
filterMode: 0
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
@ -54,7 +54,7 @@ TextureImporter:
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 12
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
@ -71,20 +71,7 @@ TextureImporter:
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureFormat: 19
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
@ -94,7 +81,7 @@ TextureImporter:
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
@ -1,5 +1,5 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:yousandi.cn,2023:
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1101 &-6744393909673955560
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
@ -89,7 +89,7 @@ AnimatorController:
|
||||
m_DefaultFloat: 0
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 0}
|
||||
m_Controller: {fileID: 9100000}
|
||||
m_AnimatorLayers:
|
||||
- serializedVersion: 5
|
||||
m_Name: Base Layer
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.Universal;
|
||||
using X.Rendering.Feature;
|
||||
@ -216,5 +217,28 @@ public class Test : MonoBehaviour
|
||||
{
|
||||
Debug.Log("TestBatchMode");
|
||||
}
|
||||
|
||||
|
||||
[ContextMenu("ApplyMesh 1")]
|
||||
private void ApplyMesh()
|
||||
{
|
||||
ApplyMesh(1);
|
||||
}
|
||||
|
||||
|
||||
[ContextMenu("ApplyMesh 0")]
|
||||
private void ApplyMesh0()
|
||||
{
|
||||
ApplyMesh(0);
|
||||
}
|
||||
|
||||
|
||||
private void ApplyMesh(byte index)
|
||||
{
|
||||
var mesh = GetComponent<MeshFilter>().sharedMesh;
|
||||
var color = new Color32[mesh.vertexCount];
|
||||
Array.Fill(color, new Color32(index, index, index, index));
|
||||
mesh.colors32 = color;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
BIN
Assets/Scenes/a.png
Normal file
|
After Width: | Height: | Size: 677 KiB |
@ -1,9 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 767a0c9fdacd8234faad9e9f22f861a3
|
||||
guid: 61c0e3aad5c7bcd4cb5a3b072ce62417
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
@ -12,17 +12,17 @@ TextureImporter:
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
alphaTestReferenceValue: 0
|
||||
mipMapFadeDistanceStart: 0
|
||||
mipMapFadeDistanceEnd: 0
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
heightScale: 0
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
@ -30,31 +30,31 @@ TextureImporter:
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureFormat: 0
|
||||
maxTextureSize: 0
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 3
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
compressionQuality: 0
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
spriteExtrude: 0
|
||||
spriteMeshType: 0
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spritePivot: {x: 0, y: 0}
|
||||
spritePixelsToUnits: 0.001
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
spriteGenerateFallbackPhysicsShape: 0
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 12
|
||||
spriteTessellationDetail: 0
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
@ -72,19 +72,6 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
@ -94,7 +81,7 @@ TextureImporter:
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
BIN
Assets/Scenes/arrao.png
Normal file
|
After Width: | Height: | Size: 702 KiB |
114
Assets/Scenes/arrao.png.meta
Normal file
@ -0,0 +1,114 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bc54459c3b598604b9c5a09f4394f985
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0
|
||||
mipMapFadeDistanceStart: 0
|
||||
mipMapFadeDistanceEnd: 0
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 0
|
||||
maxTextureSize: 0
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 0
|
||||
spriteMode: 0
|
||||
spriteExtrude: 0
|
||||
spriteMeshType: 0
|
||||
alignment: 0
|
||||
spritePivot: {x: 0, y: 0}
|
||||
spritePixelsToUnits: 0.001
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 0
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: 0
|
||||
textureType: 0
|
||||
textureShape: 4
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 2
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Scenes/arrm.png
Normal file
|
After Width: | Height: | Size: 702 KiB |
114
Assets/Scenes/arrm.png.meta
Normal file
@ -0,0 +1,114 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ae2eeefc3357ce548a81dd1d931413bf
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0
|
||||
mipMapFadeDistanceStart: 0
|
||||
mipMapFadeDistanceEnd: 0
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 0
|
||||
maxTextureSize: 0
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 0
|
||||
spriteMode: 0
|
||||
spriteExtrude: 0
|
||||
spriteMeshType: 0
|
||||
alignment: 0
|
||||
spritePivot: {x: 0, y: 0}
|
||||
spritePixelsToUnits: 0.001
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 0
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: 0
|
||||
textureType: 0
|
||||
textureShape: 4
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 2
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 12
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||