Table of Contents

Class GLEditor<T>

Namespace
Gamelogic.Extensions.Editor.Internal
Assembly
Assembly-CSharp-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

public T Target { get; }

Property Value

T

Targets

public T[] Targets { get; }

Property Value

T[]

Methods

AddCombo(string[], int)

public static int AddCombo(string[] options, int selectedIndex)

Parameters

options string[]
selectedIndex int

Returns

int

AddField(GLSerializedProperty)

protected void AddField(GLSerializedProperty prop)

Parameters

prop GLSerializedProperty

AddField(SerializedProperty)

protected void AddField(SerializedProperty prop)

Parameters

prop SerializedProperty

AddLabel(string, string)

protected void AddLabel(string title, string text)

Parameters

title string
text string

AddTextAndButton(string, string, Action)

protected void AddTextAndButton(string text, string buttonLabel, Action buttonAction)

Parameters

text string
buttonLabel string
buttonAction Action

ArrayGUI(SerializedObject, SerializedProperty)

protected void ArrayGUI(SerializedObject obj, SerializedProperty property)

Parameters

obj SerializedObject
property SerializedProperty

DrawInspectorButtons(int)

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

protected void DrawInspectorButtons(int columnCount)

Parameters

columnCount int

The number of columns to draw the buttons in.

FindProperty(string)

public GLSerializedProperty FindProperty(string propertyName)

Parameters

propertyName string

Returns

GLSerializedProperty

HasProperty(string)

public bool HasProperty(string propertyName)

Parameters

propertyName string

Returns

bool

Splitter()

Draws a line as a separator in the inspector.

public void Splitter()

See Also