Version: 2023.2

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. Undoing and redoing changes also records events. The stream of events is flushed once per frame. User interactions in the editor may map to multiple events in the event stream.

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.