SerializedObjectclass

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

objectSerializedObject
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public abstract class Sandbox.SerializedObject

Constructors1

Showing 1 constructors

Methods8

Showing 8 methods

public virtual void NoteChanged(Sandbox.SerializedProperty childProperty)PUBLICVIRTUAL

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.

ParameterTypeDescription
childPropertySerializedProperty
Returns:void

protected virtual void PrepareEnumerator()PROTECTEDVIRTUAL

Called right before enumeration, to allow derivitives react to changes

Returns:void

Properties11

Showing 11 properties

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

True if the target is multiple objects

Returns:bool

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

Does the target object still exist?

Returns:bool

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

A list of actual target objects - if applicable

Returns:IEnumerable<object>

public virtual string Sandbox.SerializedObject.TypeIcon { get; set; }PUBLICVIRTUALGETSET

Returns:string

public virtual string Sandbox.SerializedObject.TypeName { get; set; }PUBLICVIRTUALGETSET

Returns:string

public virtual string Sandbox.SerializedObject.TypeTitle { get; set; }PUBLICVIRTUALGETSET

Returns:string

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