This is an intentional change in behavior. A non-BlueprintType USTRUCT should not be visible to blueprints.
Defining a FBoneReference variable as BlueprintReadWrite or BlueprintReadOnly in the UPROPERTY macro fails to compile in 4.17. The error message provided by VS states:
LogCompile: Error: Type 'FTestStruct' is not supported by blueprint. MyActor.Rando
This is likely caused by FBoneReference's USTRUCT not including the BlueprintType specifier
Regression:
Yes - Code provided in repro steps does compile successfully in 4.16.3 binary
Workarounds:
USTRUCT()
struct FTestStruct
{
GENERATED_BODY()
float someNum;
};
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = test) FTestStruct Rando;
Result:
Compile fails stating that FTestStruct is not supported by blueprints
Expected:
VS compiles successfully with exposed FBoneReference variable
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-48708 in the post.
0 |
Component | UE - Foundation - Cpp Tools - UnrealHeaderTool |
---|---|
Affects Versions | 4.17 |
Created | Aug 22, 2017 |
---|---|
Resolved | Aug 23, 2017 |
Updated | Apr 27, 2018 |