Get a Selected component in Editor

If ever you’re still in search of a solution, I suggest checking this forum:

It requires a little bit of c++, but hopefully it’s not too complicated even if you’re a total c++ noob like I am.