mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[Unity] Warnings cleanup
This commit is contained in:
parent
7788abbee2
commit
65ef51d6bc
@ -123,7 +123,7 @@ public class AtlasAssetInspector : Editor {
|
||||
GUILayout.BeginHorizontal();
|
||||
{
|
||||
EditorGUI.BeginDisabledGroup(true);
|
||||
EditorGUILayout.ObjectField(mat, typeof(Material), GUILayout.Width(250));
|
||||
EditorGUILayout.ObjectField(mat, typeof(Material), false, GUILayout.Width(250));
|
||||
EditorGUI.EndDisabledGroup();
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
@ -137,7 +137,7 @@ public class AtlasAssetInspector : Editor {
|
||||
//EditorGUILayout.ToggleLeft(baked[i] ? "" : regions[i].name, baked[i]);
|
||||
bool result = baked[i] ? EditorGUILayout.ToggleLeft("", baked[i], GUILayout.Width(24)) : EditorGUILayout.ToggleLeft(" " + regions[i].name, baked[i]);
|
||||
if(baked[i]){
|
||||
EditorGUILayout.ObjectField(bakedObjects[i], typeof(GameObject), GUILayout.Width(250));
|
||||
EditorGUILayout.ObjectField(bakedObjects[i], typeof(GameObject), false, GUILayout.Width(250));
|
||||
}
|
||||
if (result && !baked[i]) {
|
||||
//bake
|
||||
|
||||
@ -426,8 +426,9 @@ public class SpineEditorUtilities : AssetPostprocessor {
|
||||
|
||||
|
||||
static bool CheckForValidAtlas (string atlasPath) {
|
||||
return false;
|
||||
|
||||
return false;
|
||||
//////////////DEPRECATED - always check for new atlas data now
|
||||
/*
|
||||
string dir = Path.GetDirectoryName(atlasPath);
|
||||
TextAsset textAsset = (TextAsset)AssetDatabase.LoadAssetAtPath(atlasPath, typeof(TextAsset));
|
||||
DirectoryInfo dirInfo = new DirectoryInfo(dir);
|
||||
@ -441,7 +442,7 @@ public class SpineEditorUtilities : AssetPostprocessor {
|
||||
var atlasAsset = (AtlasAsset)obj;
|
||||
if (atlasAsset.atlasFile == textAsset) {
|
||||
|
||||
/*
|
||||
|
||||
Atlas atlas = atlasAsset.GetAtlas();
|
||||
FieldInfo field = typeof(Atlas).GetField("regions", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.NonPublic);
|
||||
List<AtlasRegion> regions = (List<AtlasRegion>)field.GetValue(atlas);
|
||||
@ -459,7 +460,7 @@ public class SpineEditorUtilities : AssetPostprocessor {
|
||||
BakeRegion(atlasAsset, region);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -468,9 +469,8 @@ public class SpineEditorUtilities : AssetPostprocessor {
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
|
||||
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
static List<AtlasAsset> MultiAtlasDialog (List<string> requiredPaths, string initialDirectory, string header = "") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user