UVirtualCameraCineCameraComponent::FindClosestPresetIndex

Searches a preset array for the closest value to it.

Choose your operating system:

Windows

macOS

Linux

References

Module

VirtualCamera

Header

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

Include

#include "VirtualCameraCineCameraComponent.h"

Source

/Engine/Plugins/Experimental/VirtualCamera/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