SceneView.AlignViewToObject

public void AlignViewToObject(Transform t);

Parameters

tThe transform to frame in the Scene view.

Description 描述

Moves the Scene view to frame a transform.

This sets the scene pivot, rotation, and size to look at a transform.