Description
The FrameTo
method in the SceneEditorSession
class is used to adjust the editor's view to focus on a specific bounding box within the scene. This is particularly useful for centering the camera on a specific area of interest, allowing for a more detailed inspection or editing of that part of the scene.
Usage
To use the FrameTo
method, you need to have an instance of SceneEditorSession
. You will also need a BBox
object that defines the area you want to focus on. Pass this bounding box as a reference to the method.
Example usage:
SceneEditorSession session = Editor.SceneEditorSession.Active;
BBox targetBox = new BBox(new Vector3(-10, -10, -10), new Vector3(10, 10, 10));
session.FrameTo(ref targetBox);
Example
SceneEditorSession session = Editor.SceneEditorSession.Active;
BBox targetBox = new BBox(new Vector3(-10, -10, -10), new Vector3(10, 10, 10));
session.FrameTo(ref targetBox);