Version: 2022.3

ObjectChangeEvents

class in UnityEditor

切换到手册

描述

Exposes events that allow you to track undoable changes to objects in the editor.

Any undoable change to any object loaded in the editor (both GameObject and assets such as Material object) are recorded and exposed as a stream of events. See ObjectChangeKind for more information as to which types of changes are recorded.

Events

changesPublishedEvent that is raised once per frame if any undoable changes have been recorded.

委托

ObjectChangeEventsHandlerThe delegate used for the event publishing the object changes.