GizmoRenderingUtil::CalculateViewDependentScaleAndFlatten

Choose your operating system:

Windows

macOS

Linux

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoRenderingUtil.h

Include

#include "BaseGizmos/GizmoRenderingUtil.h"

Source

/Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/GizmoRenderingUtil.cpp

Syntax

namespace GizmoRenderingUtil
{
    float GizmoRenderingUtil::CalculateViewDependentScaleAndFlatten
    (
        const FSceneView * View,
        const FVector & Location,
        const float Scale,
        FVector & OutWorldFlattenScale
    )
}

Returns

OutWorldFlattenScale vector to be applied in world space, can be used to flatten excluded dimension in orthographic views as it reverses the scale in that dimension.