RuntimeScriptableObjectEditor Class
Definition
Section titled “Definition”Base editor for RuntimeScriptableObject.
[CustomEditor(typeof(RuntimeScriptableObject), true)]public class RuntimeScriptableObjectEditor : EditorInheritance object → UnityEngine.Object → UnityEngine.ScriptableObject → UnityEditor.Editor
Properties
Section titled “Properties”StackTracesLabel
Section titled “StackTracesLabel”protected virtual string StackTracesLabel { get; }Methods
Section titled “Methods”OnEnable()
Section titled “OnEnable()”protected virtual void OnEnable()OnDisable()
Section titled “OnDisable()”protected virtual void OnDisable()GatherProperties()
Section titled “GatherProperties()”Override to gather serialized properties.
protected virtual void GatherProperties()OnStackTraceAdded()
Section titled “OnStackTraceAdded()”Called whenever a stack trace is added.
protected virtual void OnStackTraceAdded()CreateInspectorGUI()
Section titled “CreateInspectorGUI()”Implement this method to make a custom UIElements inspector.
public override sealed VisualElement CreateInspectorGUI()Returns
Section titled “Returns”UnityEngine.UIElements.VisualElement
CreateDefaultInspectorGUI(VisualElement)
Section titled “CreateDefaultInspectorGUI(VisualElement)”protected void CreateDefaultInspectorGUI(VisualElement root)Parameters
Section titled “Parameters”root UnityEngine.UIElements.VisualElement
CreateGUIBeforeStackTraces(VisualElement)
Section titled “CreateGUIBeforeStackTraces(VisualElement)”Override to create your own editor.
protected virtual void CreateGUIBeforeStackTraces(VisualElement root)Parameters
Section titled “Parameters”root UnityEngine.UIElements.VisualElement
The root of your editor.
GetExcludingProperties(List)
Section titled “GetExcludingProperties(List)”Get any serialized properties that should be excluded from the default inspector.
protected virtual void GetExcludingProperties(List<SerializedProperty> properties)Parameters
Section titled “Parameters”properties List<SerializedProperty>
The list where you add your excluded properties.