class
ManagedSceneHandles
Renders, updates and manipulates handles declared in managed code.
Managed code handles have a [CustomHandle] attribute and must implement b3d.Editor.Handle.
Public
Constructors
ManagedSceneHandles
Methods
~ManagedSceneHandles
Protected
Methods
TriggerPreInput
Called during handle update.
Allows handle sliders to be created or destroyed before any input is handled.
TriggerPostInput
Called during handle update after handle input is processed.
Allows implementation to respond to delta values calculated in sliders due to input.
QueueDrawCommands
Queues handle draw commands from all the registered handles.
To be implemented by base classes.
UpdateHandles
Creates or destroys handle objects depending on the current selection.
ClearAssemblyData
Clears references to all managed types and objects.
Must be called before loadAssemblyData() if loadAssemblyData() was called previously.
LoadAssemblyData
Loads internal managed assembly types and finds all custom handle classes.
Must be called after construction and after assembly reload.
IsValidHandleType
Checks is the provided type a valid custom handle class.
Custom handles must have a [CustomHandle] attribute and must implement BansheeEditor.Handle.
- type
- Type to check.
- componentType
- Component type for which the handle should be displayed for. Handle will not be displayed unless a component of this type is selected. Only valid if method returns true.
- ctor
- Constructor method for the handle type. Only valid if method returns true.
Returns: True if the type is a valid custom handle type.
CallPreInput
Triggers the PreInput method on the provided Handle object.
Pre input happens before any handles are selected or moved and allows you to position the handles or prepare them in some other way.
CallPostInput
Triggers the PostInput method on the provided Handle object.
Post input happens after we know in what way has the user interacted with the handles this frame.
CallDraw
Triggers the Draw method on the provided Handle object.
Draw allows you to draw the visual representation of the handles. Called after PostInput.
CallDestroy
Triggers the Destroy method on the provided Handle object.
Destroy is called when the handle is no longer being displayed.