Car/Assets/StompyRobot/SRF/Scripts/UI/Editor/CopyLayoutElementEditor.cs

40 lines
946 B
C#
Raw Normal View History

2025-01-02 11:32:58 +08:00
namespace SRF.UI.Editor
{
/*[CustomEditor(typeof(CopyLayoutElement))]
[CanEditMultipleObjects]
public class CopyLayoutElementEditor : UnityEditor.Editor
{
private SerializedProperty _copySourceProperty;
private SerializedProperty _paddingWidthProperty;
private SerializedProperty _paddingHeightProperty;
protected void OnEnable()
{
_paddingWidthProperty = serializedObject.FindProperty("PaddingWidth");
_paddingHeightProperty = serializedObject.FindProperty("PaddingHeight");
_copySourceProperty = serializedObject.FindProperty("CopySource");
}
public override void OnInspectorGUI()
{
//base.OnInspectorGUI();
EditorGUILayout.Space();
EditorGUILayout.PropertyField(_copySourceProperty);
EditorGUILayout.PropertyField(_paddingWidthProperty);
EditorGUILayout.PropertyField(_paddingHeightProperty);
serializedObject.ApplyModifiedProperties();
serializedObject.Update();
}
}*/
}