mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Clarify SkeletonRendererInspector label and tooltip.
This commit is contained in:
parent
fa66c7a15a
commit
7b49e63213
@ -50,8 +50,8 @@ public class SkeletonAnimationInspector : SkeletonRendererInspector {
|
|||||||
m_isPrefab = true;
|
m_isPrefab = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void gui () {
|
protected override void DrawInspectorGUI () {
|
||||||
base.gui();
|
base.DrawInspectorGUI();
|
||||||
|
|
||||||
SkeletonAnimation component = (SkeletonAnimation)target;
|
SkeletonAnimation component = (SkeletonAnimation)target;
|
||||||
if (!component.valid)
|
if (!component.valid)
|
||||||
|
|||||||
@ -21,8 +21,8 @@ public class SkeletonAnimatorInspector : SkeletonRendererInspector {
|
|||||||
isPrefab = true;
|
isPrefab = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void gui () {
|
protected override void DrawInspectorGUI () {
|
||||||
base.gui();
|
base.DrawInspectorGUI();
|
||||||
|
|
||||||
EditorGUILayout.PropertyField(layerMixModes, true);
|
EditorGUILayout.PropertyField(layerMixModes, true);
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,7 @@ public class SkeletonRendererInspector : Editor {
|
|||||||
sortingLayerIDProperty = rendererSerializedObject.FindProperty("m_SortingLayerID");
|
sortingLayerIDProperty = rendererSerializedObject.FindProperty("m_SortingLayerID");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void gui () {
|
protected virtual void DrawInspectorGUI () {
|
||||||
SkeletonRenderer component = (SkeletonRenderer)target;
|
SkeletonRenderer component = (SkeletonRenderer)target;
|
||||||
EditorGUILayout.BeginHorizontal();
|
EditorGUILayout.BeginHorizontal();
|
||||||
EditorGUILayout.PropertyField(skeletonDataAsset);
|
EditorGUILayout.PropertyField(skeletonDataAsset);
|
||||||
@ -134,7 +134,7 @@ public class SkeletonRendererInspector : Editor {
|
|||||||
EditorGUILayout.PropertyField(submeshSeparators, true);
|
EditorGUILayout.PropertyField(submeshSeparators, true);
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
EditorGUILayout.PropertyField(meshes,
|
EditorGUILayout.PropertyField(meshes,
|
||||||
new GUIContent("Render Meshes", "Disable to optimize rendering for skeletons that don't use meshes"));
|
new GUIContent("Render Mesh Attachments", "Disable to optimize rendering for skeletons that don't use Mesh Attachments"));
|
||||||
EditorGUILayout.PropertyField(immutableTriangles,
|
EditorGUILayout.PropertyField(immutableTriangles,
|
||||||
new GUIContent("Immutable Triangles", "Enable to optimize rendering for skeletons that never change attachment visbility"));
|
new GUIContent("Immutable Triangles", "Enable to optimize rendering for skeletons that never change attachment visbility"));
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
@ -154,7 +154,7 @@ public class SkeletonRendererInspector : Editor {
|
|||||||
|
|
||||||
override public void OnInspectorGUI () {
|
override public void OnInspectorGUI () {
|
||||||
serializedObject.Update();
|
serializedObject.Update();
|
||||||
gui();
|
DrawInspectorGUI();
|
||||||
if (serializedObject.ApplyModifiedProperties() ||
|
if (serializedObject.ApplyModifiedProperties() ||
|
||||||
(Event.current.type == EventType.ValidateCommand && Event.current.commandName == "UndoRedoPerformed")
|
(Event.current.type == EventType.ValidateCommand && Event.current.commandName == "UndoRedoPerformed")
|
||||||
) {
|
) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user