// Copyright | Raumgleiter AG | 2019 | All Rights Reserved // Copyright | Pillars of SY (Simon Gloor) | 2019 | All Rights Reserved //*********************************************************************************************************************** //Headers using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; //*********************************************************************************************************************** namespace Raumgleiter { [CustomEditor(typeof(YOUR_AFFECTED_CLASS), true)] public class YOUR_AFFECTED_CLASS_Inspector : Editor { //------------------------------------------------------------------------------------------------------------------ //Connections //[Header("Connections")] //Resources //[Header("Resources")] //Attributes //[Header("Attributes")] //Stats //[Header("Stats")] //Getter //Delegates //------------------------------------------------------------------------------------------------------------------ //setup //public void SetUp() //{ //} //------------------------------------------------------------------------------------------------------------------ //destroy //*********************************************************************************************************************** //OnInspectorGUI public override void OnInspectorGUI() { //Get Target YOUR_AFFECTED_CLASS Target = (YOUR_AFFECTED_CLASS)target; //Draw default GUI base.OnInspectorGUI(); //Example Button //if (GUILayout.Button("Build")) { Target.Build(); } } //*********************************************************************************************************************** //refresh //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //events //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //private //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //protected //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //internal //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //public //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //public static //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //getter, setter //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ } }