SceneEditorLayerPhysicsEdit
Package: Libraries.Interface.Undo · Inherits from: Libraries.Language.Object, Libraries.Interface.Undo.Edit
The SceneEditorLayerPhysicsEdit is one change to a layer's physics in games, in the scene editor's undo list: physics turned on or off, or the gravity changed in the layer's Physics section. It holds both before and after, gives the layer one or the other, then has the scene editor show it and say what happened.
Actions
Create(Libraries.Interface.Controls.Scenes.SceneEditor controller, Libraries.Interface.Controls.Scenes.Layers.EditorLayer layer, boolean beforeEnabled, Libraries.Compute.Vector3 beforeGravity, boolean afterEnabled, Libraries.Compute.Vector3 afterGravity, text changeName)
Sets up the edit.
Parameters
controllerLibraries.Interface.Controls.Scenes.SceneEditor: The scene editorlayerLibraries.Interface.Controls.Scenes.Layers.EditorLayer: The layerbeforeEnabledboolean: Whether physics was on beforebeforeGravityLibraries.Compute.Vector3: The gravity beforeafterEnabledboolean: Whether physics is on afterafterGravityLibraries.Compute.Vector3: The gravity afterchangeNametext: What changed, such as "change gravity"
Dispose()
GetRedoName()
Returns
text
GetUndoName()
Returns
text
Redo()
Undo()
Sets up the edit.