文档

Unity Engine

Unity Engine

Frame(Bounds, bool)

Frames the given bounds in the Scene view.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public bool Frame(Bounds bounds, bool instant = true)

Parameters

bounds

The bounds to frame in the Scene view.

instant

Set to true to immediately frame the camera. Set to false to animate the action.

Returns

Type

Description

boolReturns true if the given bounds can be encompassed in the Scene view. Returns false otherwise.