diff --git a/Source/Attributes/Public/FloatAttributesLibrary.h b/Source/Attributes/Public/FloatAttributesLibrary.h index 80a6151..e1f05a2 100644 --- a/Source/Attributes/Public/FloatAttributesLibrary.h +++ b/Source/Attributes/Public/FloatAttributesLibrary.h @@ -47,6 +47,10 @@ class ATTRIBUTES_API UFloatAttributesLibrary : public UBlueprintFunctionLibrary UFUNCTION(BlueprintPure, Category = Attributes, meta = (DisplayName = "ToFloat (FloatAttr)", CompactNodeTitle = "->", Keywords = "get value float", BlueprintAutocast)) static FORCEINLINE float Conv_AttributeToFloat(const FFloatAttr& Attribute) { return GetValue(Attribute); } + // Get final value as double + UFUNCTION(BlueprintPure, Category = Attributes, meta = (DisplayName = "ToDouble (FloatAttr)", CompactNodeTitle = "->", Keywords = "get value double", BlueprintAutocast)) + static FORCEINLINE double Conv_AttributeToDouble(const FFloatAttr& Attribute) { return GetValue(Attribute); } + // Get final value as String UFUNCTION(BlueprintPure, Category = Attributes, meta = (DisplayName = "ToString (FloatAttr)", CompactNodeTitle = "->", BlueprintAutocast)) static FORCEINLINE FString Conv_AttributeToString(const FFloatAttr& Attribute) { diff --git a/Source/Attributes/Public/Int32AttributesLibrary.h b/Source/Attributes/Public/Int32AttributesLibrary.h index 9ca8a56..8edfb9b 100644 --- a/Source/Attributes/Public/Int32AttributesLibrary.h +++ b/Source/Attributes/Public/Int32AttributesLibrary.h @@ -47,6 +47,10 @@ class ATTRIBUTES_API UInt32AttributesLibrary : public UBlueprintFunctionLibrary UFUNCTION(BlueprintPure, Category = Attributes, meta = (DisplayName = "ToInt (Int32Attr)", CompactNodeTitle = "->", Keywords = "get value int", BlueprintAutocast)) static FORCEINLINE int32 Conv_AttributeToInt(const FInt32Attr& Attribute) { return GetValue(Attribute); } + // Get final value as int64 + UFUNCTION(BlueprintPure, Category = Attributes, meta = (DisplayName = "ToInt64 (Int32Attr)", CompactNodeTitle = "->", Keywords = "get value int64", BlueprintAutocast)) + static FORCEINLINE int64 Conv_AttributeToInt64(const FInt32Attr& Attribute) { return GetValue(Attribute); } + // Get final value as String UFUNCTION(BlueprintPure, Category = Attributes, meta = (DisplayName = "ToString (Int32Attr)", CompactNodeTitle = "->", BlueprintAutocast)) static FORCEINLINE FString Conv_AttributeToString(const FInt32Attr& Attribute) {