FScalableFloat

Generic numerical value in the form Value * Curve[Level]

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AttributeSet.h

Include

#include "AttributeSet.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)([BlueprintType](Programming/UnrealArchitecture/Reference/Structs/Specifiers/BlueprintType))
struct FScalableFloat

Remarks

Generic numerical value in the form Value * Curve[Level]

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

FCurveTableRowH...

 

Curve

Curve that is evaluated at a specific level. If found, it is multipled by Value

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

float

 

Value

Raw value, is multiplied by curve

Constructors

Name Description

Public function

FScalableFloat()

Public function

FScalableFloat

(
    float InInitialValue
)

Destructors

Name Description

Public function

~FScalableFloat()

Functions

Name Description

Public function Const

bool

 

AsBool

(
    float Level,
    const FString* ContextString
)

Used when using a scalable float as a bool

Public function Const

int32

 

AsInteger

(
    float Level,
    const FString* ContextString
)

Returns the value as an int32

Public function Const

float

 

GetValue

(
    const FString* ContextString
)

Returns the scaled value at level 0

Public function Const

float

 

GetValueAtLevel

(
    float Level,
    const FString* ContextString
)

Returns the scaled value at a given level

Public function Const

float

 

GetValueChecked()

Public function Const

bool

 

IsStatic()

True if there is no curve lookup

Public function Const

bool

 

IsValid()

Error checking: checks if we have a curve table specified but no valid curve entry

Public function

bool

 

SerializeFromMismatchedTag

(
    const FPropertyTag& Tag,
    FStructuredArchive::FSlot Slot
)

Used to upgrade a float or int8/int16/int32 property into an FScalableFloat

Public function

void

 

SetScalingValue

(
    float InCoeffecient,
    FName InRowName,
    UCurveTable* InTable
)

Overrides raw value and curve reference

Public function

void

 

SetValue

(
    float NewValue
)

Sets raw value

Public function Const

FString

 

ToSimpleString()

Outputs human readable string

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FScalableFloat& Other
)

Public function

void

 

operator=

(
    const FScalableFloat& Src
)

Copy operator to prevent duplicate handles

Public function Const

bool

 

operator==

(
    const FScalableFloat& Other
)

Equality/Inequality operators

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss