I’ve decided to use UMG over slate and i was woundering if i could create a widget in umg (for example a button) and have the on click event execute in c++. Is that possible? and if so how could i go about doing that?
you could call an exec function through a console command.
in this video they show UMG executing C++ functions like r.SetRes or OpenLevel.Yes ofcorse… why not? Everything in blueprint is accessible thru C++
Most event in UMG are delegates, you need to bind function to it somehow
But would i be able to execute my custom functions that i coded in a file?
your custom c++ functions are no different than Epics, since you are programming in native C++. if you make it a static function in a BlueprintFunctionLibrary, you can call it from anywhere in blueprint. and if you make it an Exec function, you can call it from a console command.