Hello guys, im spawning actor with UWidgetComponent via c++ and i need to set up ReciveHardwareInput bool but there is no Set function, any ideas how to change it without rewriting the source file?
It this the only solution?
Just set the variable directly ?
bReceiveHardwareInput = true;
Its protected and i dont get why there is no setter, like its made to use with blueprints only.
I added setter function to the source file “WidgetComponent.h” and now im getting C4430 error ;(
There is no need to rewrite the source code just make a new class that inherits from UWidgetComponent
The variable is also already exposed to Blueprint so you can also set it there.