mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[unity] Minor updates to editors.
This commit is contained in:
parent
69cb86eeef
commit
5766aa747d
@ -238,6 +238,12 @@ namespace Spine.Unity.Editor {
|
||||
AssetDatabase.CreateAsset(newAsset, assetPath);
|
||||
}
|
||||
}
|
||||
|
||||
var folderObject = AssetDatabase.LoadAssetAtPath(dataPath, typeof(UnityEngine.Object));
|
||||
if (folderObject != null) {
|
||||
Selection.activeObject = folderObject;
|
||||
EditorGUIUtility.PingObject(folderObject);
|
||||
}
|
||||
}
|
||||
|
||||
void OnInspectorGUIMulti () {
|
||||
|
||||
@ -75,6 +75,7 @@ namespace Spine.Unity.Editor {
|
||||
}
|
||||
|
||||
SerializedProperty dataField = property.FindBaseOrSiblingProperty(TargetAttribute.dataField);
|
||||
|
||||
if (dataField != null) {
|
||||
var objectReferenceValue = dataField.objectReferenceValue;
|
||||
if (objectReferenceValue is SkeletonDataAsset) {
|
||||
|
||||
@ -288,7 +288,6 @@ namespace Spine.Unity.Editor {
|
||||
defaultShader = shader != null ? shader.name : DEFAULT_DEFAULT_SHADER;
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
EditorPrefs.SetString(DEFAULT_SHADER_KEY, defaultShader);
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUI.BeginChangeCheck();
|
||||
setTextureImporterSettings = EditorGUILayout.Toggle(new GUIContent("Apply Atlas Texture Settings", "Apply the recommended settings for Texture Importers."), showHierarchyIcons);
|
||||
@ -296,6 +295,8 @@ namespace Spine.Unity.Editor {
|
||||
EditorPrefs.SetBool(SET_TEXTUREIMPORTER_SETTINGS_KEY, showHierarchyIcons);
|
||||
}
|
||||
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.LabelField("Editor Instantiation", EditorStyles.boldLabel);
|
||||
EditorGUI.BeginChangeCheck();
|
||||
defaultZSpacing = EditorGUILayout.Slider("Default Slot Z-Spacing", defaultZSpacing, -0.1f, 0f);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user