コード例 #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);
        }
コード例 #2
0
 public override void OnInspectorGUI()
 {
     serializedObject.Update();
     GTGUILayout.ArrayProperty(collections, "Collections");
     serializedObject.ApplyModifiedProperties();
 }