文档

Unity Engine

Unity Engine

MoveToView

Transforms all selected object to the scene SceneView.pivot.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

MoveToView()

Transforms all selected object to the scene SceneView.pivot.
public void MoveToView()

Remarks

If no argument is passed, each selected object is moved to the SceneView.pivot point, keeping their relative spacing.

MoveToView(Transform)

Transforms all selected object to the scene SceneView.pivot.
public void MoveToView(Transform target)

Parameters

target

A transform to place at the scene SceneView.pivot.

Remarks

If no argument is passed, each selected object is moved to the SceneView.pivot point, keeping their relative spacing.