Open 3D Engine WhiteBox Gem API Reference 26.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
WhiteBox::ModeMouseInteraction Struct Reference

#include <EditorWhiteBoxComponentModeTypes.h>

Public Attributes

const AzToolsFramework::ViewportInteraction::MouseInteractionEvent & m_mouseInteraction
 
AZ::EntityComponentIdPair m_entityComponentIdPair
 
AZ::Transform m_worldFromLocal
 
const IntersectionAndRenderData & m_intersectionData
 
AZStd::optional< EdgeIntersection > m_edgeIntersection
 
AZStd::optional< PolygonIntersection > m_polygonIntersection
 
AZStd::optional< VertexIntersection > m_vertexIntersection
 

Detailed Description

Everything a sub-mode might need to handle a viewport mouse interaction, bundled into a single context so every mode can share one HandleMouseInteraction signature. Some modes use the precomputed edge/polygon/vertex hits; others (e.g. DrawShapeMode) use the raw world transform and intersection cache. Built fresh per event, so reference members are safe.


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