s&box docs

public abstract class Sandbox.SerializedObject

An object (or data) that can be accessed as an object

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 8 methods

public virtual sealed System.Collections.Generic.IEnumerator`1<Sandbox.SerializedProperty> GetEnumerator()

public virtual void NoteChanged(Sandbox.SerializedProperty childProperty)

It's good manners for a changed SerializedProperty to tell its parent on set. That way the parent can cascade changes up the tree. This is particularly important if the tree includes struct types - because those values will need to be re-set on any ParentProperty's.

protected virtual void PrepareEnumerator()

Called right before enumeration, to allow derivitives react to changes

Properties

Showing 11 properties

public virtual bool Sandbox.SerializedObject.IsMultipleTargets { get; set; }

True if the target is multiple objects

public virtual bool Sandbox.SerializedObject.IsValid { get; set; }

Does the target object still exist?

public virtual System.Collections.Generic.IEnumerable`1<object> Sandbox.SerializedObject.Targets { get; set; }

A list of actual target objects - if applicable

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.System
Doc IDT:Sandbox.SerializedObject

On this page

Constructorsprotected SerializedObject()Methodspublic virtual sealed System.Collections.Generic.IEnumerator`1<Sandbox.SerializedProperty> GetEnumerator()public virtual Sandbox.SerializedProperty GetProperty(System.String v)public virtual System.Void NoteChanged(Sandbox.SerializedProperty childProperty)public virtual System.Void NoteFinishEdit(Sandbox.SerializedProperty childProperty)public virtual System.Void NotePreChange(Sandbox.SerializedProperty childProperty)public virtual System.Void NoteStartEdit(Sandbox.SerializedProperty childProperty)protected virtual System.Void PrepareEnumerator()public virtual System.Boolean TryGetProperty(System.String v, Sandbox.SerializedProperty prop)Propertiespublic virtual System.Boolean Sandbox.SerializedObject.IsMultipleTargets { get; set; }public virtual System.Boolean Sandbox.SerializedObject.IsValid { get; set; }public Sandbox.SerializedObject.PropertyChangedDelegate Sandbox.SerializedObject.OnPropertyChanged { get; set; }public Sandbox.SerializedObject.PropertyFinishEditDelegate Sandbox.SerializedObject.OnPropertyFinishEdit { get; set; }public Sandbox.SerializedObject.PropertyPreChangeDelegate Sandbox.SerializedObject.OnPropertyPreChange { get; set; }public Sandbox.SerializedObject.PropertyStartEditDelegate Sandbox.SerializedObject.OnPropertyStartEdit { get; set; }public Sandbox.SerializedProperty Sandbox.SerializedObject.ParentProperty { get; set; }public virtual System.Collections.Generic.IEnumerable`1<System.Object> Sandbox.SerializedObject.Targets { get; set; }public virtual System.String Sandbox.SerializedObject.TypeIcon { get; set; }public virtual System.String Sandbox.SerializedObject.TypeName { get; set; }public virtual System.String Sandbox.SerializedObject.TypeTitle { get; set; }Metadata