Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/ScalableFloat.h |
| Include | #include "ScalableFloat.h" |
Syntax
USTRUCT&40;BlueprintType&41;
struct FScalableFloat
Remarks
Generic numerical value in the form Value * Curve[Level]
Variables
| Type | Name | Description | |
|---|---|---|---|
| FCurveTableRowHandle | Curve | Curve that is evaluated at a specific level. If found, it is multipled by Value | |
| FDataRegistryType | RegistryType | Name of Data Registry containing curve to use. | |
| float | Value | Raw value, is multiplied by curve |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FScalableFloat
(
float InInitialValue |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Used when using a scalable float as a bool | ||
| int32 | Returns the value as an int32 | ||
| bool | EvaluateCurveAtLevel
(
float& OutValue, |
Gets the value and possible curve at a given level, returning false if it failed to find a good value | |
| float | Returns the scaled value at level 0 | ||
| float | GetValueAtLevel
(
float Level, |
Returns the scaled value at a given level | |
| float | Returns static value, only safe if this has no curve reference | ||
| bool | IsStatic () |
True if there is no curve lookup | |
| bool | IsValid () |
Error checking: Returns false if this has an invalid curve reference but will not print warnings | |
| bool | IsValidWithWarnings
(
const FString& ContextString |
Error checking: Checks if float is valid and prints detailed warnings if not valid | |
| bool | SerializeFromMismatchedTag
(
const FPropertyTag& Tag, |
Used to upgrade a float or int8/int16/int32 property into an FScalableFloat | |
| void | SetScalingValue
(
float InCoeffecient, |
Overrides raw value and curve reference | |
| void | SetValue
(
float NewValue |
Sets raw value | |
| FString | Outputs human readable string |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FScalableFloat& Other |
||
| FScalableFloat & | operator=
(
const FScalableFloat& Src |
Copy operator to prevent duplicate handles | |
| bool | operator==
(
const FScalableFloat& Other |
Equality/Inequality operators |