An overly generic error message is produced when you have a TArray UProperty that contains a non-blueprint friendly type.
For example:
UPROPERTY(EditAnywhere, BlueprintReadWrite, editfixedsize)
TArray<FInputBlendPose> MyVariable;
would produce the following error message:
LogCompile: Error: Type 'TArray' is not supported by blueprint. MyClass.MyVariable
The true problem is that FInputBlendPose is not Blueprint friendly and conflicts with the BlueprintReadWrite markup on the TArray declaration.
Changing the error message to include template type arguments, such as either of the following error messages would be ideal:
LogCompile: Error: Type 'TArray<FInputBlendPose>' is not supported by blueprint. MyClass.MyVariable
LogCompile: Error: Template Type 'FInputBlendPose' in 'TArray<FInputBlendPose>' is not supported by blueprint. MyClass.MyVariable
Declare a blueprint friendly TArray of a non-blueprint friendly type such as
UPROPERTY(EditAnywhere, BlueprintReadWrite, editfixedsize)
TArray<FInputBlendPose> MyVariable;
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-68342 in the post.
2 |
Component | UE - Foundation - Cpp Tools - UnrealHeaderTool |
---|---|
Affects Versions | 4.20, 4.21 |
Created | Jan 11, 2019 |
---|---|
Resolved | Aug 27, 2021 |
Updated | Aug 27, 2021 |
5449 - projectgheist |