Version: 2022.3

ObjectChangeEventStream

struct in UnityEditor

切换到手册

描述

Represents a stream of events that describes the changes applied to objects in memory over the course of a frame.

变量

isCreatedIndicates whether the ObjectChangeEventStream has an allocated memory buffer.
lengthThe number of events in the stream.

公共函数

CloneCreates a copy of this stream with the specified allocator.
DisposeReleases the memory associated with this stream.
GetChangeAssetObjectPropertiesEventRetrieves the event data at the given index as a ChangeAssetObjectPropertiesEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.
GetChangeChildrenOrderEventRetrieves the event data at the given index as a ChangeChildrenOrderEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.
GetChangeGameObjectOrComponentPropertiesEventRetrieves the event data at the given index as a ChangeAssetObjectPropertiesEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.
GetChangeGameObjectParentEventRetrieves the event data at the given index as a ChangeGameObjectParentEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.
GetChangeGameObjectStructureEventRetrieves the event data at the given index as a ChangeGameObjectStructureEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.
GetChangeGameObjectStructureHierarchyEventRetrieves the event data at the given index as a ChangeGameObjectStructureHierarchyEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.
GetChangeSceneEventRetrieves the event data at the given index as a ChangeSceneEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.
GetCreateAssetObjectEventRetrieves the event data at the given index as a CreateAssetObjectEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.
GetCreateGameObjectHierarchyEventRetrieves the event data at the given index as a CreateGameObjectHierarchyEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.
GetDestroyAssetObjectEventRetrieves the event data at the given index as a DestroyAssetObjectEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.
GetDestroyGameObjectHierarchyEventRetrieves the event data at the given index as a DestroyGameObjectHierarchyEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.
GetEventTypeReturns the type of the event at the specified index.
GetUpdatePrefabInstancesEventRetrieves the event data at the given index as a UpdatePrefabInstancesEventArgs. Throws an exception if the event type requested does not match the event stored in the stream.