Can't expose member variables to Blueprint

Hello,
I’m trying to expose some class member variables from C++ to Blueprint without any success so far.

UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Power)
class USphereComponent* CollectionSphere;

UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = Power)
float PowerLevel;

This is an example property declaration from the class, inheriting from ACharacter. The project is created from Third Person C++ Template. I build the code, close/open blueprint editor, close/open UE Editor - nothing. I tried removing/changing the categories of the default properties again no change. Tried different build schemes and configurations also with no result.

My setup -

  • OS X Yosemite v10.10.1 (14B25)
  • UE4 4.6.0-2369412
  • XCode 6 Version 6.1.1 (6A2008a)

Any help is greatly appreciated, thanks.

#Development_Editor x64

Make sure you are using only Development_Editor x64 as your build configuration in Visual Studio

That should do the trick

#VisibleAnywhere → EditAnywhere

Also make sure you use EditAnywhere

like

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=SolusObjectiveSystem)
int32 SolusObjectiveSystem_PrimaryObjective;

Rama

It turned out the build configuration was correct, but it was compiling with the wrong scheme.

24021-screen+shot+2014-12-14+at+8.37.15+pm.png

The one selected on the image is the right one. Previously I was trying to compile with the first two. Thanks for the help, this was turning me mental. :slight_smile: