Clarify SkeletonRendererInspector label and tooltip.

This commit is contained in:
pharan 2016-03-05 04:56:01 +08:00
parent fa66c7a15a
commit 7b49e63213
3 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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")
) {