Navigation
API > API/Plugins > API/Plugins/GameplayCameras > API/Plugins/GameplayCameras/Core
Inheritance Hierarchy
- TCameraValueInterpolator
- TIIRValueInterpolator
- TPopValueInterpolator
References
| Module | GameplayCameras |
| Header | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Core/CameraValueInterpolator.h |
| Include | #include "Core/CameraValueInterpolator.h" |
Syntax
template<typename ValueType>
class TCameraValueInterpolator
Remarks
A value interpolator is a stand-alone object that can interpolate a given value towards a given target value. Various sub-classes of this base class should implement various interpolation algorithms.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsFinished | ||
| ValueType | CurrentValue | ||
| const UCameraValueInterpolator * | Parameters | ||
| ValueType | TargetValue |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TCameraValueInterpolator
(
const UCameraValueInterpolator* InParameters |
Creates a new value interpolator given a piece of data containing user-defined settings. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| ValueType | Gets the current value. | ||
| const TInterpolatorClass * | Gets the parameters class and casts it to the given sub-class. | ||
| ValueType | Gets the target value. | ||
| bool | IsFinished () |
Returns whether the interpolation has ended. | |
| void | OnReset
(
ValueTypeParam OldCurrentValue, |
Called when the current and/or target values are forcibly changed. | |
| void | OnRun
(
const FCameraValueInterpolationParams& Params, |
Evaluates the interpolator, advancing the current value towards the target. | |
| void | OnSerialize
(
const FCameraValueInterpolatorSerializeParams& Params, |
Serializes the value interpolator to/from the given archive. | |
| void | Reset
(
ValueTypeParam NewCurrentValue, |
Resets the current and target values. | |
| ValueType | Run
(
const FCameraValueInterpolationParams& Params, |
Evaluates the interpolator, advancing the current value towards the target. | |
| void | Serialize
(
const FCameraValueInterpolatorSerializeParams& Params, |
Serializes the value interpolator to/from the given archive. |
Typedefs
| Name | Description |
|---|---|
| ValueTypeParam |