API ReferenceSandbox
SerializedObjectclass
An object (or data) that can be accessed as an object
object→SerializedObject
Constructors1
Showing 1 constructors
protected SerializedObject()
No results match this filter.
Methods8
Showing 8 methods
public virtual sealed System.Collections.Generic.IEnumerator`1<Sandbox.SerializedProperty> GetEnumerator()
public virtual Sandbox.SerializedProperty GetProperty(string v)
| Parameter | Type | Description |
|---|---|---|
| v | string | — |
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.
| Parameter | Type | Description |
|---|---|---|
| childProperty | SerializedProperty | — |
Returns:
void—public virtual void NoteFinishEdit(Sandbox.SerializedProperty childProperty)
| Parameter | Type | Description |
|---|---|---|
| childProperty | SerializedProperty | — |
Returns:
void—public virtual void NotePreChange(Sandbox.SerializedProperty childProperty)
| Parameter | Type | Description |
|---|---|---|
| childProperty | SerializedProperty | — |
Returns:
void—public virtual void NoteStartEdit(Sandbox.SerializedProperty childProperty)
| Parameter | Type | Description |
|---|---|---|
| childProperty | SerializedProperty | — |
Returns:
void—protected virtual void PrepareEnumerator()
Called right before enumeration, to allow derivitives react to changes
Returns:
void—public virtual bool TryGetProperty(string v, Sandbox.SerializedProperty prop)
| Parameter | Type | Description |
|---|---|---|
| v | string | — |
| prop | SerializedProperty | — |
Returns:
bool—No results match this filter.
Properties11
Showing 11 properties
public virtual bool Sandbox.SerializedObject.IsMultipleTargets { get; set; }
True if the target is multiple objects
Returns:
bool—public virtual bool Sandbox.SerializedObject.IsValid { get; set; }
Does the target object still exist?
Returns:
bool—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<object> Sandbox.SerializedObject.Targets { get; set; }
A list of actual target objects - if applicable
Returns:
IEnumerable<object>—public virtual string Sandbox.SerializedObject.TypeIcon { get; set; }
Returns:
string—public virtual string Sandbox.SerializedObject.TypeName { get; set; }
Returns:
string—public virtual string Sandbox.SerializedObject.TypeTitle { get; set; }
Returns:
string—No results match this filter.