Editor.serializedObject

매뉴얼로 전환
public SerializedObject serializedObject ;

설명

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.