Navigation
API > API/Plugins > API/Plugins/GameplayCameras > API/Plugins/GameplayCameras/Math > API/Plugins/GameplayCameras/Math/TConsumableValue > API/Plugins/GameplayCameras/Math/TConsumableValue/Apply
References
| Module | GameplayCameras |
| Header | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Math/ConsumableValue.h |
| Include | #include "Math/ConsumableValue.h" |
ValueType Apply
(
const ValueType InTarget
)
Remarks
Applies the consumable to the given value and returns the new value.
This is meant to be used as follows:
MyFooBar = Consumable.Apply(MyFooBar);
After this, the consumable doesn't have any value left in it anymore, so HasValue() will return false and further calls to Apply() will just return the same value as the given parameter.