When I try using “Construct Object from Class” within a Widget it gets destroyed nearly straight away. Anyone know how I can fix this?
trying setting the outer to something other than the widget, otherwise you could create it somewhere like the playercontroller and just return a reference?
I tried that but it doesn’t work. It’s for a menu there’s no player involved but I see your point.
I’ve created the Object on Event Construct and seems to hold it ok, I don’t know why this wouldn’t work with a custom event.
Another question to do with using the Object within a Widget is, can I use Event Dispatch to call a function on the owning Widget?
unless the construction itself failed the only thing i can think of is there was no strong reference so it got garbage collected
thats fine, you just have to bind manually.