Answer the question
In order to leave comments, you need to log in
How to call from the code what happens on a double click on a th in the hierarchy?
How to call from the code what happens when you double-click on a game object in the hierarchy (the scene view moves to look at it)?
Answer the question
In order to leave comments, you need to log in
SceneView.lastActiveSceneView.AlignViewToObject(transform);
Either change Selection.activeGameObject and call SceneView.FrameSelected, or calculate Bounds and call SceneView.Frame.
Selection.activeGameObject = gameObject;
SceneView.currentDrawingSceneView.FrameSelected();
// или
SceneView.lastActiveSceneView.FrameSelected();
// или
EditorWindow.GetWindow<SceneView>().FrameSelected();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question