Sorry to bump old thread, but the link is no longer working. I’m not sure if it is better ot make a new thread or not.
If I understand correctly, setting an object variable to nothing would nullify it:
and then unreal will automatically handle the garbage collection as needed.
And further from that, as you can see I am overwriting the variable with a new class sometimes, in which case the result should be the same?
In other words, operating this way shouldn’t be an issue, even if we are creating these objects often (like having it tied to input bindings, i.e. whenever widgets are opened/closed a new “state object” is created)?