17 lines
496 B
C#
17 lines
496 B
C#
|
using Game;
|
|||
|
using UnityEditor;
|
|||
|
using UnityEditor.UI;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
[CustomEditor(typeof(ShapeImage), true)]
|
|||
|
public class ShapeImageEditor : ImageEditor
|
|||
|
{
|
|||
|
public override void OnInspectorGUI()
|
|||
|
{
|
|||
|
base.OnInspectorGUI();
|
|||
|
ShapeImage image = (ShapeImage)target;
|
|||
|
SerializedProperty sp = serializedObject.FindProperty("offset");
|
|||
|
EditorGUILayout.PropertyField(sp, new GUIContent("offset <20><>бƫ<D0B1><C6AB>"));
|
|||
|
serializedObject.ApplyModifiedProperties();
|
|||
|
}
|
|||
|
}
|