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
TThe 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.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
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
Returns
AddField(GLSerializedProperty)
protected void AddField(GLSerializedProperty prop)
Parameters
propGLSerializedProperty
AddField(SerializedProperty)
protected void AddField(SerializedProperty prop)
Parameters
propSerializedProperty
AddLabel(string, string)
protected void AddLabel(string title, string text)
Parameters
AddTextAndButton(string, string, Action)
protected void AddTextAndButton(string text, string buttonLabel, Action buttonAction)
Parameters
ArrayGUI(SerializedObject, SerializedProperty)
protected void ArrayGUI(SerializedObject obj, SerializedProperty property)
Parameters
objSerializedObjectpropertySerializedProperty
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
columnCountintThe number of columns to draw the buttons in.
FindProperty(string)
public GLSerializedProperty FindProperty(string propertyName)
Parameters
propertyNamestring
Returns
HasProperty(string)
public bool HasProperty(string propertyName)
Parameters
propertyNamestring
Returns
Splitter()
Draws a line as a separator in the inspector.
public void Splitter()