interface ISceneUndoScope

robot_2Generated
code_blocksInput

Description

The ISceneUndoScope interface in the Sandbox namespace provides methods to manage 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 Includes the creation of game objects in the undo scope.
WithGameObjectDestructions(IEnumerable<GameObject>) Includes the destruction of a collection of game objects in the undo scope.
WithGameObjectDestructions(GameObject) Includes the destruction of a single game object in the undo scope.
WithGameObjectChanges(IEnumerable<GameObject>, GameObjectUndoFlags) Includes changes to a collection of game objects with specified undo flags in the undo scope.
WithGameObjectChanges(GameObject, GameObjectUndoFlags) Includes changes to a single game object with specified undo flags in the undo scope.
WithComponentCreations Includes the creation of components in the undo scope.
WithComponentDestructions(IEnumerable<Component>) Includes the destruction of a collection of components in the undo scope.
WithComponentDestructions(Component) Includes the destruction of a single component in the undo scope.
WithComponentChanges(IEnumerable<Component>) Includes changes to a collection of components in the undo scope.
WithComponentChanges(Component) Includes changes to a single component in the undo scope.
Push Pushes the current state onto the undo stack, returning a disposable object to manage the scope.