UTypedElementViewportInteraction

A utility to handle higher-level viewport interactions, but default via [UTypedElementWorldInterface](API\Runtime\Engine\Elements\Interfaces\UTypedElementWorldInterface), but asset editors can customize this behavior via [FTypedElementViewportInteractionCustomization](API\Editor\EditorFramework\Elements\Framework\FTypedElementVie-).

Unreal Engine C++ API Reference > Editor > EditorFramework > Elements > Framework

Inheritance Hierarchy

References

   
Module EditorFramework
Header /Engine/Source/Editor/EditorFramework/Public/Elements/Framework/TypedElementViewportInteraction.h
Include #include "Elements/Framework/TypedElementViewportInteraction.h"

Syntax

class UTypedElementViewportInteraction :  
    public [UObject](API\Runtime\CoreUObject\UObject\UObject),  
    public [TTypedElementInterfaceCustomizationRegistry< FTypedElementViewportInteractionCustomization >](API\Runtime\TypedElementRuntime\Elements\Framework\TTypedElementInt-)  

Remarks

A utility to handle higher-level viewport interactions, but default via UTypedElementWorldInterface, but asset editors can customize this behavior via FTypedElementViewportInteractionCustomization.

Functions

Type Name Description
void ApplyDeltaToElement ( const FTypedElementHandle& InEleme..., const UE::Widget::EWidgetMode InWid..., const EAxisList::Type InDragAxis, const FInputDeviceState& InInputSt..., const FTransform& InDeltaTransform ) Apply the given delta to the specified element.
void BeginGizmoManipulation ( FTypedElementListConstRef InElement..., const UE::Widget::EWidgetMode InWid... ) Notify that the gizmo is potentially about to start manipulating the transform of the given set of elements.
void EndGizmoManipulation ( FTypedElementListConstRef InElement..., const UE::Widget::EWidgetMode InWid..., const ETypedElementViewportInteract... ) Notify that the gizmo has finished manipulating the transform of the given set of elements.
bool GetFocusBounds ( FTypedElementListConstRef InElement..., FBoxSphereBounds& OutBox ) Calculate the bounds of all elements in the list, to be focused on in the viewport
void MirrorElement ( const FTypedElementHandle& InEleme..., const FVector& InMirrorScale ) Apply the given mirror scale to the specified element.
void UpdateGizmoManipulation ( FTypedElementListConstRef InElement..., const UE::Widget::EWidgetMode InWid..., const EAxisList::Type InDragAxis, const FInputDeviceState& InInputSt..., const FTransform& InDeltaTransform ) Notify that the gizmo has manipulated the transform of the given set of elements.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library