Editor.serializedObject Manual     Reference     Scripting  
Scripting > Editor Classes > Editor
Editor.serializedObject

var serializedObject : SerializedObject

Description

A SerializedObject representing the object or objects being inspected.

The serializedObject can be used inside the OnInspectorGUI function of a custom Editor as described on the page about the Editor class.

The serializedObject should not be used inside OnSceneGUI or OnPreviewGUI. Use the target property directly in those callback functions instead.

See Also: Editor class, SerializedObject class