Class GLMonoBehaviourEditor
- Namespace
- Gamelogic.Extensions.Editor
- Assembly
- Gamelogic.Extensions.Editor.dll
This universal editor makes it possible to add buttons that will execute static methods to the inspector by adding the InspectorButton attribute to the method.
[CustomEditor(typeof(GLMonoBehaviour), true)]
[CanEditMultipleObjects]
public class GLMonoBehaviourEditor : GLEditor<GLMonoBehaviour>
- Inheritance
-
GLMonoBehaviourEditor
- Inherited Members
-
Editor.CreateEditorWithContext(Object[], Object)Editor.CreateEditor(Object)Editor.CreateEditor(Object[])Editor.ShouldHideOpenButton()Editor.GetPreviewTitle()Editor.GetInfoString()Editor.UseDefaultMargins()Editor.Initialize(Object[])Editor.targetEditor.targetsEditor.serializedObjectEditor.finishedDefaultHeaderGUIObject.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.nameObject.hideFlags
- Extension Methods
Remarks
You can also add this behaviour to your own editor by extending from GLEditor, and calling DrawInspectorButtons.
Methods
- OnInspectorGUI()
Implement this function to make a custom inspector.
See Also
GLEditor<T>