Beispiel #1
0
        public override void OnInspectorGUI()
        {
            SynchronizerEditorUtility.AddSynchronizerGameObject();

            DrawComponentId();

            SynchronizerEditorUtility.DrawHorizontalLine(10f);

            originalInspectorFoldout = EditorGUILayout.Foldout(originalInspectorFoldout, "Snychronized Component");
            if (originalInspectorFoldout)
            {
                EditorGUI.indentLevel++;
                DrawExtraInspector();
                EditorGUI.indentLevel--;
            }

            SynchronizerEditorUtility.DrawHorizontalLine(10f);

            defaultInspectorFoldout = EditorGUILayout.Foldout(defaultInspectorFoldout, "Default Inepector");
            if (defaultInspectorFoldout)
            {
                EditorGUI.indentLevel++;
                DrawDefaultInspector();
                EditorGUI.indentLevel--;
            }
        }
Beispiel #2
0
        public override void OnInspectorGUI()
        {
            SetPrefabPath();
            SynchronizerEditorUtility.AddSynchronizerGameObject();

            DrawExtraInspector();
            SynchronizerEditorUtility.DrawHorizontalLine(10f);
            DrawDefaultInspector();
        }