| FAttributeSetInitter::PreloadAttributeSetData()
|
Module |
|
Header |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AttributeSet.h |
Include |
#include "AttributeSet.h" |
Source |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/AttributeSet.cpp |
virtual void PreloadAttributeSetData
(
const TArray< UCurveTable * > & CurveData
)
Transforms CurveTable data into format more efficient to read at runtime. UCurveTable requires string parsing to map to GroupName/AttributeSet/Attribute Each curve in the table represents a single attribute's values for all levels. At runtime, we want all attribute values at given level.
This code assumes that your curve data starts with a key of 1 and increases by 1 with each key.