Trying to access a property causes blueprint runtime error

oristal
Wed, 20 Apr 2016 15:21:16 +0000
C++

Sorry for double posting, I’ve already posted my issue [here][1] but managed to reproduce it in a project from scratch and think it’s really a bug and not something from my code. Here’s what I did:

Create a third person BP project

Create a c++ class, let’s call it Room, with a FString property like this:

UPROPERTY(Category = “Room properties”, EditAnywhere, BlueprintReadWrite)
FString RoomName;

Create a blueprint that inherits from this class, place it in the scene

In the third person BP, try to display the room name like this

Launch the game, press H, the room name is displayed

Edit the code to add a comment just above the UPROPERTY

// I’m a comment
UPROPERTY(Category = “Room properties”, EditAnywhere, BlueprintReadWrite)
FString RoomName;

Compile, launch, press H, the errors are displayed.

PIE:Error: Error Blueprint Runtime Error: Attempted to access missing property. If this is a packaged/cooked build, are you attempting to use an editor-only property? from function: ‘ExecuteUbergraph_ThirdPersonCharacter’ from node: Print String in graph: EventGraph in object: ThirdPersonCharacter
The only way to fix this is to relaunch the editor. I’ve tested this on two different computers to be sure it was not coming from a potentially corrupted installation. I’ve also tested on 4.10, which doesn’t break, but it does breaks on 4.11.1 and 4.11.2.

Am I the only one having this issue? I hope you guys can reproduce it and fix it.

Thanks in advance.

25 posts - 18 participants