Table of Contents

Class GLEditor<T>

Namespace
Gamelogic.Extensions.Editor.Internal
Assembly
Gamelogic.Extensions.Editor.dll

Class that can be used as a base class for custom editors with extra convenience methods and properties.

[Version(1, 3, 0)]
public class GLEditor<T> : Editor where T : MonoBehaviour

Type Parameters

T

The type this is an editor for.

Inheritance
GLEditor<T>
Derived
Inherited Members
Editor.CreateEditorWithContext(Object[], Object)
Editor.CreateEditor(Object)
Editor.CreateEditor(Object[])
Editor.ShouldHideOpenButton()
Editor.GetPreviewTitle()
Editor.GetInfoString()
Editor.UseDefaultMargins()
Editor.Initialize(Object[])
Editor.target
Editor.targets
Editor.serializedObject
Editor.finishedDefaultHeaderGUI
Object.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.name
Object.hideFlags
Extension Methods

Properties

Target

Gets the inspected target cast to type T.

Targets

Gets all inspected targets cast to type T.

Methods

AddCombo(string[], int)

Draws a popup dropdown and returns the selected index.

AddField(GLSerializedProperty)

Draws a property field for the given GLSerializedProperty, using its custom tooltip.

AddField(SerializedProperty)

Draws a property field for the given serialized property.

AddLabel(string, string)

Draws a label field with a title and a text value.

AddTextAndButton(string, string, Action)

Draws a bold label next to a button; invokes buttonAction when the button is clicked.

ArrayGUI(SerializedObject, SerializedProperty)

Draws an inspector GUI for an array serialized property, allowing resizing and element editing.

DrawInspectorButtons(int)

Draws the buttons in the inspector for all method in the target class that are marked with the InspectorButtonAttribute.

FindProperty(string)

Finds a serialized property by name and wraps it in a GLSerializedProperty.

HasProperty(string)

Returns whether the target object has a serialized property with the given name.

Splitter()

Draws a line as a separator in the inspector.

See Also