UVirtualCameraCineCameraComponent::FindClosestPresetIndex

Searches a preset array for the closest value to it.

References

Module

VirtualCamera

Header

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

Include

#include "VirtualCameraCineCameraComponent.h"

Source

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

Syntax

int32 FindClosestPresetIndex
(
    const TArray< float > & ArrayToSearch,
    const float SearchValue
) const

Remarks

Searches a preset array for the closest value to it.

Returns

the index of the closest value to the search value in the preset array

Parameters

Parameter

Description

SearchValue

The value that will be used to find the closest preset

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