ドキュメント

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.