public override void OnInspectorGUI()
        {
            EditorToolkit.DrawTitle("Zone Controller");

            DrawToolbar();
            EditorToolkit.DrawSeparator();

            DrawZones();
            EditorToolkit.DrawSeparator();

            EditorToolkit.DrawFooter();
        }
Example #2
0
        public override void OnInspectorGUI()
        {
            Tools.current = Tool.None;

            EditorToolkit.DrawTitle("Boundaries Controller");

            ShowToolbar();
            EditorToolkit.DrawSeparator();

            ShowGroups();
            EditorToolkit.DrawSeparator();

            EditorToolkit.DrawFooter();
        }
        /// <summary>
        /// Unity3D OnInspectorGUI event
        /// </summary>
        public override void OnInspectorGUI()
        {
            RestrictColliderSettings();
            GUI.changed = false;

            EditorToolkit.DrawTitle("Zone");
            DrawToolbar();

            EditorToolkit.DrawSeparator();

            DrawSettings();
            EditorToolkit.DrawFooter();

            if (GUI.changed)
            {
                EditorUtility.SetDirty(target);
            }
        }
Example #4
0
        public override void OnInspectorGUI()
        {
            Tools.current = Tool.None;
            GUI.changed   = false;

            EditorToolkit.DrawTitle("Pool");
            DrawToolbar();
            EditorToolkit.DrawSeparator();

            pool.prefab = EditorGUILayout.ObjectField("Prefab", pool.prefab, typeof(GameObject), false) as GameObject;

            if (pool.prefab)
            {
                pool.name = string.Format("pool-{0}", pool.prefab.name);
            }

            pool.size  = EditorGUILayout.IntField("Pool Size", pool.size);
            pool.limit = EditorGUILayout.Toggle("Limit Growth", pool.limit);

            if (pool.limit)
            {
                pool.limitSize           = EditorGUILayout.IntField("Limit Size", pool.limitSize);
                pool.suppressLimitErrors = EditorGUILayout.Toggle("Ignore Limit Errors", pool.suppressLimitErrors);

                if (pool.limitSize < pool.size)
                {
                    pool.limitSize = pool.size;
                }
            }

            pool.shrinkBack      = EditorGUILayout.Toggle("Shrink Back", pool.shrinkBack);
            pool.hideInHierarchy = EditorGUILayout.Toggle("Hide in Hierarchy", pool.hideInHierarchy);

            EditorToolkit.DrawSeparator();
            EditorToolkit.DrawFooter();

            if (GUI.changed)
            {
                EditorUtility.SetDirty(pool);
            }
        }
Example #5
0
        public override void OnInspectorGUI()
        {
            Tools.current = Tool.None;
            GUI.changed   = false;

            EditorToolkit.DrawTitle("Pool Controller");
            DrawToolbar();

            if (!controller)
            {
                return;                         // handle a DestroyAll call
            }
            EditorToolkit.DrawSeparator();
            DrawPools();

            EditorToolkit.DrawSeparator();
            EditorToolkit.DrawFooter();

            if (GUI.changed)
            {
                EditorUtility.SetDirty(controller);
            }
        }
Example #6
0
        public override void OnInspectorGUI()
        {
            Tools.current = Tool.None;
            GUI.changed   = false;

            EditorToolkit.DrawTitle("Boundaries Group");

            DrawToolbar();
            EditorGUILayout.Space();

            DrawSettings();
            DrawOperations();
            DrawSegments();

            group.Connect();

            EditorToolkit.DrawFooter();

            if (GUI.changed)
            {
                serializedObject.ApplyModifiedProperties();
                EditorUtility.SetDirty(target);
            }
        }