Wiki > UniNotes

NoteInjector class


Class used to draw the notes on the top part of the GameObject inspector.

Namespace: RotaryHeart.Lib.UniNotes
Package: UniNotes

Syntax


[CustomEditor(typeof(GameObject))]
public class NoteInjector : Editor

Methods


Accessibility Level Returns Name Description
public void OnDisable() Called by Unity when the Object is deselected.
private void OnEditClicked(object) Enables or disables the edit mode from this note.
private void OnEnable() Called by Unity when the Object is selected.
protected override void OnHeaderGUI() Called by Unity when the GameObject header is drawn.
public override void OnInspectorGUI() Called by Unity when the GameObject Inspector is drawn.
private void OnRemoveClicked(object) Removes the note from the GameObject.
private void OnResetClicked(object) Resets the note information back to default.
public void OnSceneGUI() Called by unity when the Scene window is drawn.