SceneEditorMaterialEdit
Package: Libraries.Interface.Undo · Inherits from: Libraries.Language.Object, Libraries.Interface.Undo.Edit
The SceneEditorMaterialEdit is one change to a terrain layer's material in the scene editor's Material details: a map, the normal map's convention, a value, or its name. It keeps a copy of the material from before and after. Undo and Redo copy one back, and the scene editor gives every terrain layer using the material its new look.
Actions
Create(Libraries.Interface.Controls.Scenes.SceneEditor controller, Libraries.Game.Graphics.Models.Data.Material material, Libraries.Game.Graphics.Models.Data.Material before, text name, boolean reload)
Sets up the edit.
Parameters
controllerLibraries.Interface.Controls.Scenes.SceneEditor: The scene editormaterialLibraries.Game.Graphics.Models.Data.Material: The material that changedbeforeLibraries.Game.Graphics.Models.Data.Material: A copy of it from before the changenametext: What changed, such as "normal map"reloadboolean: True if the change needs the layers given to the renderer again, false for a name
GetRedoName()
Returns
text
GetUndoName()
Returns
text
Redo()
Undo()
Sets up the edit.