Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/FCustomCalculationBasedFloat
Description
- Calculate and return the magnitude of the float given the specified gameplay effect spec.
-
This function assumes (and asserts on) the existence of the required captured attribute within the spec. It is the responsibility of the caller to verify that the spec is properly setup before calling this function.
| Name | CalculateMagnitude |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffect.h |
| Include Path | #include "GameplayEffect.h" |
| Source | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/GameplayEffect.cpp |
float CalculateMagnitude
(
const FGameplayEffectSpec & InRelevantSpec
) const
Evaluated magnitude based upon the spec & calculation policy
Parameters
| Name | Remarks |
|---|---|
| InRelevantSpec | Gameplay effect spec providing the backing attribute capture |