Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/ScalableFloat.h |
Include |
#include "ScalableFloat.h" |
USTRUCT(BlueprintType)
struct FScalableFloat
Generic numerical value in the form Value * Curve[Level]
Name | Description | ||
---|---|---|---|
|
Curve |
Curve that is evaluated at a specific level. If found, it is multipled by Value |
|
|
RegistryType |
Name of Data Registry containing curve to use. |
|
|
float |
Value |
Raw value, is multiplied by curve |
Name | Description | |
---|---|---|
|
FScalableFloat() |
|
|
FScalableFloat ( |
Name | Description | |
---|---|---|
|
~FScalableFloat() |
Name | Description | ||
---|---|---|---|
|
AsBool ( |
Used when using a scalable float as a bool |
|
|
AsInteger ( |
Returns the value as an int32 |
|
|
EvaluateCurveAtLevel ( |
Gets the value and possible curve at a given level, returning false if any errors occurred |
|
|
float |
GetValue ( |
Returns the scaled value at level 0 |
|
float |
GetValueAtLevel ( |
Returns the scaled value at a given level |
|
float |
GetValueChecked() |
Returns static value, only safe if this has no curve reference |
|
IsStatic() |
True if there is no curve lookup |
|
|
IsValid() |
Error checking: checks if we have a curve source specified but no valid curve entry |
|
|
SerializeFromMismatchedTag ( |
Used to upgrade a float or int8/int16/int32 property into an FScalableFloat |
|
|
SetScalingValue ( |
Overrides raw value and curve reference |
|
|
SetValue ( |
Sets raw value |
|
|
ToSimpleString() |
Outputs human readable string |
Name | Description | ||
---|---|---|---|
|
operator!= ( |
||
|
operator= ( |
Copy operator to prevent duplicate handles |
|
|
operator== ( |
Equality/Inequality operators |