Skip to content

RuntimeScriptableObjectEditor Class

Base editor for RuntimeScriptableObject.

C#
[CustomEditor(typeof(RuntimeScriptableObject), true)]
public class RuntimeScriptableObjectEditor : Editor

Inheritance object → UnityEngine.Object → UnityEngine.ScriptableObject → UnityEditor.Editor

C#
protected virtual string StackTracesLabel { get; }
C#
protected virtual void OnEnable()
C#
protected virtual void OnDisable()

Override to gather serialized properties.

C#
protected virtual void GatherProperties()

Called whenever a stack trace is added.

C#
protected virtual void OnStackTraceAdded()

Implement this method to make a custom UIElements inspector.

C#
public override sealed VisualElement CreateInspectorGUI()

UnityEngine.UIElements.VisualElement

C#
protected void CreateDefaultInspectorGUI(VisualElement root)

root UnityEngine.UIElements.VisualElement

Override to create your own editor.

C#
protected virtual void CreateGUIBeforeStackTraces(VisualElement root)

root UnityEngine.UIElements.VisualElement
The root of your editor.

Get any serialized properties that should be excluded from the default inspector.

C#
protected virtual void GetExcludingProperties(List<SerializedProperty> properties)

properties List<SerializedProperty>
The list where you add your excluded properties.