Unreal had something like this. Is there a native way to do this in Unity or an editor script someone can point me to? I googled but wasn’t able to come up with anything strangely.
While having the gameobject selected, go to GameObject → Align with view.
The shortkey for this is Ctrl + Shift + F.
If your mouse is over the scene area and you press “f” the scene camera will snap to the selected object in the hierarchy.
Yes, you can use undocumented classSceneView
to get position of scene camera. You could see whole implementation in my plugin. Hope it solve your problem.