Editor.serializedObject

Switch to Manual
public SerializedObject serializedObject ;

Description

SerializedObject, представляющий инспектируемый объект или объекты.

Use the serializedObject inside the OnInspectorGUI function of a custom Editor, as described on the page about the Editor class.

Do not use the serializedObject inside OnSceneGUI or OnPreviewGUI. Use the target property directly in those callback functions instead.

See Also: класс Editor, класс SerializedObject.