Gizmo events
The base class FTypedElementViewportInteractionCustomization
holds logic “to allow asset editors (such as the level editor) to override the base behavior of viewport interaction”.
For example, the derived class FActorElementLevelEditorViewportInteractionCustomization
is used when you try to move around an actor in the level.
The main functions are GizmoManipulationStarted
, GizmoManipulationDeltaUpdate
and GizmoManipulationStopped
.
GizmoManipulationStarted
- calls
GEditor->BroadcastBeginObjectMovement
(wrapper ofOnBeginObjectTransformEvent
)
- calls
GizmoManipulationStopped
- calls
PostEditMove
on the actor (withbFinished
as true) - calls
GEditor->BroadcastEndObjectMovement
(wrapper ofOnEndObjectTransformEvent
)
- calls
Selection
USelection
is the backend of the selection flow in the editor.
Notes:
- There is `Actor::IsSelectedInEditor
- There is
USelection::SelectionChangedEvent
andUSelection::SelectObjectEvent
SelectObjectEvent
isn’t called if we clear selection with the Escape key, so if you want to handle all possibilities for an actor useUSelection::SelectObjectEvent
withIsSelected()
.
- Use
GEditor->GetSelectedObjects()
(or other variants) to get a pointer toUSelection