public override void OnInspectorGUI()
            {
                EditorGUILayout.Space();

                sets.Draw();

                serializedObject.ApplyModifiedProperties();
            }
 protected virtual void DrawObjects()
 {
     if (targets.Length == 1)
     {
         EditorGUILayout.Space();
         objects.Draw();
     }
 }
Пример #3
0
 void DrawOptions()
 {
     EditorGUI.BeginChangeCheck();
     {
         options.Draw();
     }
     if (EditorGUI.EndChangeCheck())
     {
         InitValue();
     }
 }
            public override void OnInspectorGUI()
            {
                EditorGUILayout.Space();

                EditorGUI.BeginChangeCheck();
                index.Draw();
                if (EditorGUI.EndChangeCheck())
                {
                    serializedObject.ApplyModifiedProperties();

                    target.NavigateTo(index.Index);
                }

                tabs.Draw();

                serializedObject.ApplyModifiedProperties();
            }
Пример #5
0
            public override void OnInspectorGUI()
            {
                if (targets.Length == 1)
                {
                    EditorGUILayout.Space();
                    objects.Draw();
                }

                serializedObject.ApplyModifiedProperties();

                if (GUILayout.Button("Instantiate"))
                {
                    ForAllTargets((MultiPrefab target) => target.Instantiate());
                }
                if (GUILayout.Button("Clear"))
                {
                    ForAllTargets((MultiPrefab target) => target.Clear());
                }
            }
Пример #6
0
 protected virtual void DrawFoldersConstraints()
 {
     pathsConstraints.Draw();
 }
 protected virtual void DrawSets()
 {
     sets.Draw();
 }
Пример #8
0
            public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
            {
                InitList(property, label);

                list.Draw(position);
            }
Пример #9
0
 protected virtual void DrawTabs()
 {
     tabs.Draw();
 }
Пример #10
0
 protected virtual void DrawClips()
 {
     clips.Draw();
 }
 protected virtual void DrawElements()
 {
     elements.Draw();
 }