AVirtualCameraPlayerControllerBase::GetDistanceInDesiredUnits

Converts a distance in unreal units (cm) to other units of measurement for display.

References

Module

VirtualCamera

Header

/Engine/Plugins/Experimental/VirtualCameraCore/Source/VirtualCamera/Public/VirtualCameraPlayerControllerBase.h

Include

#include "VirtualCameraPlayerControllerBase.h"

Source

/Engine/Plugins/Experimental/VirtualCameraCore/Source/VirtualCamera/Private/VirtualCameraPlayerControllerBase.cpp

Syntax

UFUNCTION(BlueprintPure, Category="VirtualCamera")
FString GetDistanceInDesiredUnits
(
    const float InputDistance,
    const EUnit ConversionUnit
) const

Remarks

Converts a distance in unreal units (cm) to other units of measurement for display.

Returns

the distance converted and put into a string for display

Parameters

Parameter

Description

InputDistance

A distance in Unreal Units to be converted

ConversionUnit

The desired unit of distance to be used

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel