This issue has been closed as 'Won't Fix' due to an extended period of time without updates. If this issue is important to you please let us know by posting on the AnswerHub or UDN, and Epic will re-open the ticket for further review.
Giving an int32 variable the specific ArrayClamp has no affect when the specified array is defined inside a USTRUCT(). Variable is able to be set to a value outside of specified struct's range.
USTRUCT()
struct FRandoStruct
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test)
TArray<float> FloatArray;
FRandoStruct()
{
FloatArray.Add(423424);
FloatArray.Add(23432);
FloatArray.Add(3434);
FloatArray.Add(4578);
FloatArray.Add(459879);
FloatArray.Add(458);
}
};
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test) TArray<int32> ClassArray; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test, meta = (ArrayClamp = FloatArray)) int32 ClassArrayRef; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test, meta = (ArrayClamp = IntArray)) int32 StructArrayRef; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test) FRandoStruct StructRef;
ClassArray.Add(423424); ClassArray.Add(23432); ClassArray.Add(3434); ClassArray.Add(4578); ClassArray.Add(459879); ClassArray.Add(458); ClassArray.Add(23);
Result:
Class Array Ref field will reset to 6 upon Enter but Struct Array Ref field will remain at 100
I am not able to find world outliner how to enable it?
How to achieve HLSL Multiple Render Target in Material blueprints?
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
What method is used to fill polygonal regions when drawing spline mesh at run time?
How does TextureRenderTarget2D get TArray<uint8> type data?
How can i modify the param name in EQS node
When I open UE4 4.24.3 it appears that. Does anyone know how to solve?
How does UMG set overlapping layouts?
How to properly terminate the DoWork thread function in FAsyncTask?
Head over to the existing Questions & Answers thread and let us know what's up.
2 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.13 |
Created | Sep 14, 2016 |
---|---|
Resolved | Mar 26, 2018 |
Updated | Mar 26, 2018 |