Open 3D Engine LyShine Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
ViewportElement Class Reference

Static Public Member Functions

static bool PickElementEdges (const AZ::Entity *element, const AZ::Vector2 &point, float distance, ViewportHelpers::ElementEdges &outEdges)
 
static bool PickAnchors (const AZ::Entity *element, const AZ::Vector2 &point, const AZ::Vector2 &iconSize, ViewportHelpers::SelectedAnchors &outAnchors)
 
static bool PickAxisGizmo (const AZ::Entity *element, ViewportInteraction::CoordinateSystem coordinateSystem, ViewportInteraction::InteractionMode interactionMode, const AZ::Vector2 &point, const AZ::Vector2 &iconSize, ViewportHelpers::GizmoParts &outGizmoParts)
 
static bool PickCircleGizmo (const AZ::Entity *element, const AZ::Vector2 &point, const AZ::Vector2 &iconSize, ViewportHelpers::GizmoParts &outGizmoParts)
 
static bool PickPivot (const AZ::Entity *element, const AZ::Vector2 &point, const AZ::Vector2 &iconSize)
 
static void ResizeDirectly (HierarchyWidget *hierarchy, const AZ::EntityId &canvasId, const ViewportHelpers::ElementEdges &grabbedEdges, AZ::Entity *element, const AZ::Vector3 &mouseTranslation)
 
static void ResizeByGizmo (HierarchyWidget *hierarchy, const AZ::EntityId &canvasId, const ViewportHelpers::GizmoParts &grabbedGizmoParts, const AZ::EntityId &activeElementId, AZ::Entity *element, const AZ::Vector3 &mouseTranslation)
 
static void Rotate (HierarchyWidget *hierarchy, const AZ::EntityId &canvasId, const AZ::Vector2 &lastMouseDragPos, const AZ::EntityId &activeElementId, AZ::Entity *element, const AZ::Vector2 &mousePosition)
 
static void MoveAnchors (const ViewportHelpers::SelectedAnchors &grabbedAnchors, const UiTransform2dInterface::Anchors &startAnchors, const AZ::Vector2 &startMouseDragPos, AZ::Entity *element, const AZ::Vector2 &mousePosition, bool adjustOffsets)
 
static void MovePivot (const AZ::Vector2 &lastMouseDragPos, AZ::Entity *element, const AZ::Vector2 &mousePosition)
 

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