class
GUISceneTreeView
GUI element that displays all SceneObjects in the current scene in the active project in a tree view.
Public
Methods
staticGetGuiTypeName
Returns type name of the GUI element used for finding GUI element styles.
staticCreate
Creates a new scene tree view for the specified scene.
staticCreate
Creates a new scene tree view for the specified scene.
- scene
- Scene which objects to display.
- options
- Options that allow you to control how is the element positioned and sized. This will override any similar options set by style.
GetSelection
Returns a list of SceneObject &s currently selected (if any).
SetSelection
Changes the active selection to the provided SceneObjects.
Ping
Scrolls to and highlights the selected object (does not select it).
DuplicateSelection
Duplicates the currently selected entries.
CopySelection
Marks the current selection for copying.
CutSelection
Marks the current selection for cutting.
Paste
Pastes a set of entries previously marked for cut or copy.
GetState
Returns the expand/collapse state of the elements in the tree view, allowing it to be restored later.
SetState
Sets the expand/collapse state of the elements in the tree view.
Fields
OnSelectionChanged
Triggered whenever the selection changes.
Call getSelection() to retrieve new selection.
OnModified
Triggered whenever the scene is modified in any way from within the scene tree view (for example object is deleted, added, etc.).
OnResourceDropped
Triggered when a resource drag and drop operation finishes over the scene tree view.
Provided scene object is the tree view element that the operation finished over (or null if none), and the list of paths is the list of paths of the resources that were dropped. The paths are relative to the project library imported resources folder.
Protected
Constructors
GUISceneTreeView
Methods
~GUISceneTreeView
UpdateTreeElement
Checks it the SceneObject referenced by this tree element changed in any way and updates the tree element.
This can involve recursing all children and updating them as well.
DragAndDropFinalize
Triggered when a drag and drop operation that was started by the tree view ends, regardless if it was processed or not.
GetRootElementConst
Returns the top level TreeElement that cannot be modified.
UpdateTreeElementHierarchy
Checks if the hierarchy needs any updates and performs those updates if needed.
RenameTreeElement
Changes the name of the content associated with the provided tree element.
DeleteTreeElement
Deletes the content associated with the provided tree element.
AcceptDragAndDrop
Checks whether the tree view can accept the currently active drag and drop operation.
DragAndDropStart
Triggered when the user drags a tree element and starts a drag and drop operation.
DragAndDropEnded
Triggered when the user ends a drag and drop operation over the tree view.
- overTreeElement
- TreeElement the drag operation ended over, if any.
AcceptDragAndDrop
Checks if the GUI element accepts a drag and drop operation of the specified type.
SelectionChanged
Triggered whenever a TreeElement gets selected or deselected.
DeleteTreeElementInternal
Deletes the internal TreeElement representation without actually deleting the referenced SceneObject.
FindTreeElement
Attempts to find a tree element referencing the specified scene object.
CreateNewSo
Creates a new scene object as a child of the currently selected object (if any).
ClearCopyList
Removes all elements from the list used for copy/cut operations.
SetSelection
Changes the active selection to the provided SceneObjects and optionally triggers the necessary event callbacks.
staticCleanDuplicates
Cleans duplicate objects from the provided scene object list.
This involves removing child elements if their parents are already part of the list.