Open 3D Engine AzToolsFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzToolsFramework::EditorPickEntitySelection Class Reference

#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
 

Detailed Description

Viewport interaction that will handle assigning an entity in the viewport to an entity field in the entity inspector.

Member Function Documentation

◆ DisplayViewportSelection()

void AzToolsFramework::EditorPickEntitySelection::DisplayViewportSelection ( const AzFramework::ViewportInfo &  ,
AzFramework::DebugDisplayRequests &   
)
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.


The documentation for this class was generated from the following file: