Capture any selected object in editor scene


I’m working on a project where I need to know when any object has been selected in the scene view.
I’ve been looking at “USelection::SelectObjectEvent”, but from my understanding this will only allow me to register an object to get an event for.

Is it possible to get an event for ANY object, or would I have to iterate through the entire scene’s objects and register them all individually?
Would “USelection::SelectionChangedEvent” work? And in that case what would the function to handle the event look like?

Thank you!

I think I figured it out. I’ll edit with the solution I found later once I’ve confirmed.