#include <EditorPickEntitySelection.h>
Inherits AzToolsFramework::ViewportInteraction::InternalViewportSelectionRequests.
Public Member Functions | |
AZ_CLASS_ALLOCATOR_DECL | EditorPickEntitySelection (const EditorVisibleEntityDataCacheInterface *entityDataCache, ViewportEditorModeTrackerInterface *viewportEditorModeTracker) |
void | DisplayViewportSelection (const AzFramework::ViewportInfo &viewportInfo, AzFramework::DebugDisplayRequests &debugDisplay) override |
Viewport interaction that will handle assigning an entity in the viewport to an entity field in the entity inspector.
|
overridevirtual |
Display drawing in world space. DisplayViewportSelection is called from EditorInteractionSystemComponent::DisplayViewport. DisplayViewport exists on the AzFramework::ViewportDebugDisplayEventBus and is called from CRenderViewport. DisplayViewportSelection is called after CalculateVisibleEntityDatas on the EditorVisibleEntityDataCache, this ensures usage of the entity cache will be up to date (do not implement AzFramework::ViewportDebugDisplayEventBus directly if wishing to use the EditorVisibleEntityDataCache).
Reimplemented from AzToolsFramework::ViewportInteraction::ViewportDisplayNotifications.