SceneEditorChangeEvent
Package: Libraries.Interface.Events · Inherits from: Libraries.Language.Object
The SceneEditorChangeEvent class describes an event where the user interacted with the Scene Editor and added or removed an item from the scene. This class contains information on the Scene Editor affected, the item involved in the event, and the EditorLayer the item was on.
Variables
integer ADDEDinteger REMOVED
Actions
GetEventType()
Returns the event type. If 1 the item was added, if 2 the item was removed.
Returns
integer: The event type
GetItem()
Returns the item that was added or removed
Returns
Libraries.Interface.Item: The item that was added or removed
GetLayer()
Returns the EditorLayer affected by the event
Returns
Libraries.Interface.Controls.Scenes.Layers.EditorLayer: The EditorLayer
GetParentItem()
Returns the parent of the item that triggered the event
Returns
Libraries.Interface.Item: The parent item
GetSceneEditor()
Returns the SceneEditor where the event happened
Returns
Libraries.Interface.Controls.Scenes.SceneEditor: The scene editor
Set(Libraries.Interface.Controls.Scenes.SceneEditor editor, Libraries.Interface.Item item, Libraries.Interface.Item parentItem, Libraries.Interface.Controls.Scenes.Layers.EditorLayer layer, integer eventType)
The Set action sets all the fields of the event. When creating a new event this action is called so the object contains all the information needed for the listeners to react to it.
Parameters
editorLibraries.Interface.Controls.Scenes.SceneEditor: The Scene Editor where the event happeneditemLibraries.Interface.Item: The item that was added or removedparentItemLibraries.Interface.Item: The parent item of the affected itemlayerLibraries.Interface.Controls.Scenes.Layers.EditorLayer: The EditorLayer affected by the addition or removal of the itemeventTypeinteger: The type of event, 1 for ADDED, 2 for REMOVED