Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEditor;
- using UnityEditor.UIElements;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- [CustomEditor(typeof(interActive_Object))]
- [CanEditMultipleObjects]
- public class interActive_Editor : Editor
- {
- //SerializedProperty type;
- interActive_Object obj;
- SerializedProperty speed;
- void OnEnable()
- {
- obj = (interActive_Object)target;
- //type = serializedObject.FindProperty("interActiveType");
- }
- public override void OnInspectorGUI()
- {
- serializedObject.Update();
- EditorGUILayout.EnumPopup(obj, "what here?" );
- //EditorGUILayout.PropertyField(type);
- /*
- if (type.enumValueIndex == 0)
- {
- EditorGUILayout.PropertyField(speed, new GUIContent("Speed"));
- }
- */
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement