ObjectChangeEventStream

struct in UnityEditor

Description

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

Properties

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

Public Methods

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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961