AkiraPixelWind/Assets/Scripts/Editor/CustomCom/ShapeImageEditor.cs

17 lines
496 B
C#
Raw Normal View History

2022-12-29 18:20:40 +08:00
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();
}
}