Example #1
0
        protected override void DrawEditor(int index, SerializedObject serializedObject)
        {
            listenerName        = serializedObject.FindProperty("listenerName");
            listenerDescription = serializedObject.FindProperty("listenerDescription");
            gameEvents          = serializedObject.FindProperty("gameEvents");
            responses           = serializedObject.FindProperty("response");

            var content = new GUIContent("Name");

            EditorGUILayout.PropertyField(listenerName, content);
            content.text = "Description";
            EditorGUILayout.PropertyField(listenerDescription, content);

            EditorGUILayout.Space();
            GTGUILayout.ArrayProperty(gameEvents, "Game Events");
            EditorGUILayout.Space();

            EditorGUILayout.PropertyField(responses);
        }
 public override void OnInspectorGUI()
 {
     serializedObject.Update();
     GTGUILayout.ArrayProperty(collections, "Collections");
     serializedObject.ApplyModifiedProperties();
 }