so I’ve wrote some code to get a value for a variable. Then when I try and get a print out for that variable in my character blueprint, it reads as 0,0,0. Why is this when I can print debugmessage in C++ and the values read correctly?
The code is in the tick function, and the Print screen node in the blueprint is called in the EventTick chain. I’ve made the variable VisibleAnywhere/Blueprint read write.
Then I have the same BP setup in my BP attached to the Tick event.
If you can’t figure it out, I recommend reducing your problem domain until you can see the actual problem.
Basically create a simple test class to isolate the involved components and see if you can get that to work. Then gradually add on more stuff until you find the problem.
Thanks Temeran. I could get it to work with a simple float that increases in Tick, but I still couldn’t get my rotator to read out correctly. In the end I followed one of Rama’s tutorials and made a BlueprintImplementableEvent function which fired out my calculation of the rotator through the event.