DevManager document :
[Optional] for programmer who need to create thier own GUI window by DevManager.
- Create your own script, and register GUI window simply just extends a class “MonoBehaviourDev.cs”.
for example we create a script call “HelloWorld.cs”
and add “HelloWorld.cs” to any gameobject on scene. - When this script running on scene, it created a empty GUIWindow. (push the button on Dock bar)
- Now back to the code.
override a class call “HandleDebugGUI()” and run the game.public override void HandleDebugGUI () { GUILayout.Label("Hello World."); }
- Now you got the result like this.
- about GUI & GUILayout, you may find in here.
https://docs.unity3d.com/Documentation/ScriptReference/GUILayout.html - One more thing, you may needed to know.
when using “MonoBehaviourDev” following method will need extends the parent method.- OnEnable()
- OnDisable()
- OnGUI()
- OnFocus()
- OnBlur()
something like this.
public override void OnEnable () { base.OnEnable (); // don't remove this line. // // you can write you code here. }
[The end of DevManager framework description.]