Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
Adjuster that takes the the view frame at the component world location, and applies a constant relative transform to that. This can be used to create billboard-like gizmo components that keep some orientation to the camera. This doesn't scale the offset relative to gizmo center, but the simplest option is typically to keep the component at gizmo origin and adjust the view relative transform appropriately.
| Name | FConstantViewRelativeTransformAdjuster |
| Type | class |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/ViewBasedTransformAdjusters.h |
| Include Path | #include "BaseGizmos/ViewBasedTransformAdjusters.h" |
Syntax
class FConstantViewRelativeTransformAdjuster : public UE::GizmoRenderingUtil::IViewBasedTransformAdjuster
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FConstantViewRelativeTransformAdjuster
(
const FTransform& ViewRelativeTransformIn, |
BaseGizmos/ViewBasedTransformAdjusters.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bKeepConstantViewSize | bool | BaseGizmos/ViewBasedTransformAdjusters.h | ||
| ViewRelativeTransform | FTransform | BaseGizmos/ViewBasedTransformAdjusters.h |
Functions
Public
Overridden from IViewBasedTransformAdjuster
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FTransform GetAdjustedComponentToWorld
(
const UE::GizmoRenderingUtil::ISceneViewInterface& View, |
IGizmoViewTransformAdjuster. | BaseGizmos/ViewBasedTransformAdjusters.h | |
virtual FBoxSphereBounds GetViewIndependentBounds
(
const FTransform& LocalToWorld, |
Returns the transform that should be returned by a USceneComponent CalcBounds method, which can't know about the view. | BaseGizmos/ViewBasedTransformAdjusters.h |