UFUNCTION() for getter defined in header
I have a getter function in my header MaximumTopSpinBall.h declared as such:
But it's throwing a compile error stating a semicolon is missing before the next declaration. When I add an extra semicolon to the end it compiles, but the function doesn't show up in the blueprint. (It doesn't show up even when I just type "player".)
I think the code you placed in header file is conflicting with generated code. UHT assumes that you decler functions in header files and keep the code in cpp files.
answered Jan 04 '15 at 10:14 PM
Well, that took an annoyingly long amount of time to figure out.
Closing the project and reopening it caused the functions to show up. That's all, just a reboot and the functions showed up. Compiling the code, the blueprint, reopening the blueprint, or even making an entirely new blueprint failed to make it show up when I tried earlier. I think I'll submit a bug report after I finally make a bit of progress today.
answered Jan 05 '15 at 04:13 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here