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