Version: 2022.3

Builder

struct in UnityEditor

切换到手册

描述

Provides a way to construct an instance of ObjectChangeEventStream.

变量

eventCountThe number of events that have been recorded in this instance so far.

构造函数

ObjectChangeEventStream.BuilderConstructs a new instance.

公共函数

DisposeReleases the memory associated with this instance.
PushChangeAssetObjectPropertiesEventAdds an ChangeAssetObjectPropertiesEventArgs to the end of the stream.
PushChangeGameObjectOrComponentPropertiesEventAdds an ChangeGameObjectOrComponentPropertiesEventArgs to the end of the stream.
PushChangeGameObjectParentEventAdds an ChangeGameObjectParentEventArgs to the end of the stream.
PushChangeGameObjectStructureEventAdds an ChangeGameObjectStructureEventArgs to the end of the stream.
PushChangeGameObjectStructureHierarchyEventAdds an ChangeGameObjectStructureHierarchyEventArgs to the end of the stream.
PushChangeSceneEventAdds an ChangeSceneEventArgs to the end of the stream.
PushCreateAssetObjectEventAdds an CreateAssetObjectEventArgs to the end of the stream.
PushCreateGameObjectHierarchyEventAdds an CreateGameObjectHierarchyEventArgs to the end of the stream.
PushDestroyAssetObjectEventAdds an DestroyAssetObjectEventArgs to the end of the stream.
PushDestroyGameObjectHierarchyEventAdds an DestroyGameObjectHierarchyEventArgs to the end of the stream.
PushUpdatePrefabInstancesEventAdds an UpdatePrefabInstancesEventArgs to the end of the stream.
ToStreamCopies the data collected in this instance into a new ObjectChangeEventStream instance.