123456789101112131415161718192021222324252627282930 |
- using UnityEngine;
- using UnityEditor;
- using System.Collections;
- namespace TerrainComposer2
- {
- [CustomEditor(typeof(TC_Generate))]
- public class TC_GenerateEditor : Editor
- {
- void OnEnable()
- {
- Transform t = ((MonoBehaviour)target).transform;
- t.hideFlags = HideFlags.NotEditable | HideFlags.HideInInspector;
- }
- public override void OnInspectorGUI()
- {
- if (TC_Settings.instance == null) return;
- if (TC_Settings.instance.debugMode) DrawDefaultInspector(); else DrawCustomInspector();
- }
- void DrawCustomInspector()
- {
- TD.DrawSpacer();
- TD.DrawLabel("This script is needed for generating", 12);
- TD.DrawSpacer();
- }
- }
- }
|