interface ISceneUndoScope

book_4_sparkGenerated
code_blocksInput

Description

The ISceneUndoScope interface in the Sandbox namespace provides methods for managing undo operations related to GameObject and Component creations, destructions, and changes within a scene. This interface is essential for implementing undo functionality in scene editing tools.

Members

Instance Methods

Member Name Summary
WithGameObjectCreations Begins an undo scope for GameObject creations.
WithGameObjectDestructions(IEnumerable<GameObject>) Begins an undo scope for the destruction of multiple GameObject instances.
WithGameObjectDestructions(GameObject) Begins an undo scope for the destruction of a single GameObject.
WithGameObjectChanges(IEnumerable<GameObject>, GameObjectUndoFlags) Begins an undo scope for changes to multiple GameObject instances with specified flags.
WithGameObjectChanges(GameObject, GameObjectUndoFlags) Begins an undo scope for changes to a single GameObject with specified flags.
WithComponentCreations Begins an undo scope for Component creations.
WithComponentDestructions(IEnumerable<Component>) Begins an undo scope for the destruction of multiple Component instances.
WithComponentDestructions(Component) Begins an undo scope for the destruction of a single Component.
WithComponentChanges(IEnumerable<Component>) Begins an undo scope for changes to multiple Component instances.
WithComponentChanges(Component) Begins an undo scope for changes to a single Component.
Push Pushes the current undo scope onto the stack, returning a disposable object to manage the scope's lifecycle.