Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Frame(Bounds, bool)

Frames the given bounds in the Scene view.
Read time 1 minuteLast updated 5 days ago

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.