Exemple #1
0
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            InspectorEditButtonGui();

            EditorGUILayout.PropertyField(_mSize);
            EditorGUILayout.PropertyField(_mCenter);

            NavMeshComponentsGuiUtility.AreaPopup("Area Type", _mArea);
            NavMeshComponentsGuiUtility.AgentMaskPopup("Affected Agents", _mAffectedAgents);
            EditorGUILayout.Space();

            serializedObject.ApplyModifiedProperties();
        }
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            EditorGUILayout.PropertyField(_mIgnoreFromBuild);

            EditorGUILayout.PropertyField(_mOverrideArea);
            if (_mOverrideArea.boolValue)
            {
                EditorGUI.indentLevel++;
                NavMeshComponentsGuiUtility.AreaPopup("Area Type", _mArea);
                EditorGUI.indentLevel--;
            }

            NavMeshComponentsGuiUtility.AgentMaskPopup("Affected Agents", _mAffectedAgents);
            EditorGUILayout.Space();

            serializedObject.ApplyModifiedProperties();
        }