Api Sandbox SerializedObject
class

SerializedObject

public abstract class SerializedObject

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

Properties

Name Type Description
ParentProperty SerializedProperty
TypeIcon virtual String
TypeName virtual String
TypeTitle virtual String
IsValid virtual Boolean Does the target object still exist?
OnPropertyPreChange PropertyPreChangeDelegate
OnPropertyChanged PropertyChangedDelegate
OnPropertyStartEdit PropertyStartEditDelegate
OnPropertyFinishEdit PropertyFinishEditDelegate
IsMultipleTargets virtual Boolean True if the target is multiple objects
Targets virtual IEnumerable<Object> A list of actual target objects - if applicable

Methods

virtual SerializedProperty GetProperty(String v)
virtual Boolean TryGetProperty(String v, SerializedProperty prop)
virtual IEnumerator<SerializedProperty> GetEnumerator()
virtual Void NoteChanged(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.

virtual Void NotePreChange(SerializedProperty childProperty)
virtual Void NoteStartEdit(SerializedProperty childProperty)
virtual Void NoteFinishEdit(SerializedProperty childProperty)
Assembly: Sandbox.System Namespace: Sandbox Full Name: Sandbox.SerializedObject