1234567891011121314151617181920212223242526272829 |
- using UnityEngine;
- using UnityEditor;
- using System.Collections;
- namespace TerrainComposer2
- {
- [CustomEditor(typeof(TC_Compute))]
- public class TC_ComputeEditor : 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 on the GPU", 12);
- TD.DrawSpacer();
- }
- }
- }
|