C++ declared variables not showing in Blueprint Graph

surely there are differences between engine versions for a OS. An operating system have their own compilers to understand code you wrote in order to get it to work properly on you OS-Architecture. Maybe it is something with the Mac-Version and could be considered as a bug. But saying that i wonder why the community here isnt full with topics like that, assuming you are not the only one working with the mac engine and selfmade coding here.

I solved my own problem. The issue was that I was running the UE4 Editor manually instead of running via Xcode. With Xcode configured properly, selecting Product->Run from the menu will launch the UE4 editor in Debug mode and all custom C++ code will be available in the editor, including custom declared variables in the Blueprint Graph.

To configure Xcode properly for UE4, make sure the UE4 editor is selected as the current scheme:

When the scheme is set to use the UE4 editor, you can run the Editor in Debug mode directly from xcode, which will load all custom C++ code when doing so, and all custom variables will be available within the Blueprint Graph.

Thanks go to board user [Arkanis][2] for the above screenshot (from another thread) that helped me understand the issue I was having.

I had the exact same problem in Visual Studio and it was driving me crazy. Closing UE4 editor and running it via VS debugger did the trick. Thanks a lot for posting this here!

CasualGameplay,

Have you been able to get the attention of UE staff on this as a bug, perhaps with hot reload? I am assuming it’s a bug because I’m unable to load the Editor normally due to this problem. I’m using your method via XCode right now, and that is a hassle, but more importantly, circumvents what I assume is the UE4 way one is supposed to start the editor. I’m curious because if it has not been seen as a bug (i.e., posted as a “Bug Report”), I was planning to post a new bug report on it.

I’ve not tried the 4.8 previews yet, but this bug is still apparent on 4.7.6.

If you solved it yourself, mark your own question as answered to show the others, please

From visual studio - Build → Rebuild Solution did it for me.
It deletes the old build files and then builds again.

Hope it helps anyone :slight_smile: