(Solved is at the bottom of this post)
My C++ is like this…
#include "GameFramework/Actor.h"
#include "ContentChunk.generated.h"
/**
*
*/
UCLASS()
class TDL2_API AContentChunk : public AActor
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = ContentChunk)
int16 xIdx;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = ContentChunk)
int16 yIdx;
};
And in the editor I have made a blueprint. Then dragged the blueprint to the level twice so I have 2 of them. It looks great, but… the xIdx and yIdx are greyed out so I can’t edit them.
I searched quite a bit and tried many changes to the UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = ContentChunk) lines to no avail. There is one older posting that suggests a fix, but the flag is deprecated.
SOLVED - Turns out the int16 does not work. I tried float and it worked, then UINT16 did not work. Then int32 which does work.