| | |
| | | SerializedProperty unselectIconProperty;
|
| | | SerializedProperty titleProperty;
|
| | | SerializedProperty effectProperty;
|
| | | SerializedProperty redpointProperty;
|
| | |
|
| | | protected override void OnEnable()
|
| | | {
|
| | |
| | | unselectIconProperty = serializedObject.FindProperty("m_UnSelectIcon");
|
| | | titleProperty = serializedObject.FindProperty("m_Title");
|
| | | effectProperty = serializedObject.FindProperty("m_SelectEffect");
|
| | | redpointProperty = serializedObject.FindProperty("redpoint");
|
| | | }
|
| | |
|
| | | public override void OnInspectorGUI()
|
| | |
| | | EditorGUILayout.PropertyField(unselectIconProperty, new GUIContent("Unselect Icon"));
|
| | | EditorGUILayout.PropertyField(titleProperty, new GUIContent("Title"));
|
| | | EditorGUILayout.PropertyField(effectProperty, new GUIContent("SelectEffect"));
|
| | | EditorGUILayout.PropertyField(redpointProperty, new GUIContent("Redpoint"));
|
| | |
|
| | | serializedObject.ApplyModifiedProperties();
|
| | | }
|