mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +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;
|
||||
}
|
||||
|
||||
protected override void gui () {
|
||||
base.gui();
|
||||
protected override void DrawInspectorGUI () {
|
||||
base.DrawInspectorGUI();
|
||||
|
||||
SkeletonAnimation component = (SkeletonAnimation)target;
|
||||
if (!component.valid)
|
||||
|
||||
@ -21,8 +21,8 @@ public class SkeletonAnimatorInspector : SkeletonRendererInspector {
|
||||
isPrefab = true;
|
||||
}
|
||||
|
||||
protected override void gui () {
|
||||
base.gui();
|
||||
protected override void DrawInspectorGUI () {
|
||||
base.DrawInspectorGUI();
|
||||
|
||||
EditorGUILayout.PropertyField(layerMixModes, true);
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ public class SkeletonRendererInspector : Editor {
|
||||
sortingLayerIDProperty = rendererSerializedObject.FindProperty("m_SortingLayerID");
|
||||
}
|
||||
|
||||
protected virtual void gui () {
|
||||
protected virtual void DrawInspectorGUI () {
|
||||
SkeletonRenderer component = (SkeletonRenderer)target;
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
EditorGUILayout.PropertyField(skeletonDataAsset);
|
||||
@ -134,7 +134,7 @@ public class SkeletonRendererInspector : Editor {
|
||||
EditorGUILayout.PropertyField(submeshSeparators, true);
|
||||
EditorGUILayout.Space();
|
||||
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,
|
||||
new GUIContent("Immutable Triangles", "Enable to optimize rendering for skeletons that never change attachment visbility"));
|
||||
EditorGUILayout.Space();
|
||||
@ -154,7 +154,7 @@ public class SkeletonRendererInspector : Editor {
|
||||
|
||||
override public void OnInspectorGUI () {
|
||||
serializedObject.Update();
|
||||
gui();
|
||||
DrawInspectorGUI();
|
||||
if (serializedObject.ApplyModifiedProperties() ||
|
||||
(Event.current.type == EventType.ValidateCommand && Event.current.commandName == "UndoRedoPerformed")
|
||||
) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user