Hello,
I’m trying to get a hold of blueprints and exposing variables to them, however I cannot get my variable to be editable from a blueprint I made of a basic class.
#pragma once
#include "GameFramework/Actor.h"
#include "HelloWorldPrinter.generated.h"
/**
*
*/
UCLASS(BlueprintType, Blueprintable)
class AHelloWorldPrinter : public AActor
{
public:
GENERATED_UCLASS_BODY()
UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category=Actor)
uint32 MyNumber;
public:
virtual void BeginPlay() OVERRIDE;
};
The variable shows up but it the box is greyed out. I’ve found this wiki article but I don’t think it really details what I’ve done wrong. Any ideas?