UPROPERTY Compiler Error with BlueprintReadWrite
I made c++ class that uses ue4's Actor as the parent. I am trying to make the variables usable within blueprints. Whenever I try to add any blueprint key words into UPROPERTY() it gives me a compiler error. I can use VisibleAnywhere, EditAnywhere, Category, etc, without any compiler errors at all.
Gives me compiler errors
No Compiler errors
What am I doing wrong?
asked Aug 20 '15 at 03:29 AM in C++ Programming
DxP Black Death
Your variable "MyInt" is of type int16, which is not supported in Blueprints. The only numerical types supported in Blueprints are uint8, int32 and float.
Also see this Question: https://answers.unrealengine.com/questions/98206/missing-support-for-uint32-int64-uint64.html
So basically you need to change your variable to int32 and everything should work fine.
answered Aug 20 '15 at 11:16 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here