Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FrameSelected

Frame the object selection in the Scene view.
Read time 1 minuteLast updated 6 days ago

Definition

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

FrameSelected()

Frame the object selection in the Scene view.
public bool FrameSelected()

Returns

Type

Description

boolReturns true if the current selection fits in the Scene view. Returns false otherwise.

FrameSelected(bool)

Frame the object selection in the Scene view.
public bool FrameSelected(bool lockView)

Parameters

lockView

Whether the view should be locked to the selection.

Returns

Type

Description

boolReturns true if the current selection fits in the Scene view. Returns false otherwise.

FrameSelected(bool, bool)

Frame the object selection in the Scene view.
public virtual bool FrameSelected(bool lockView, bool instant)

Parameters

lockView

Whether the view should be locked to the selection.

instant

Returns

Type

Description

boolReturns true if the current selection fits in the Scene view. Returns false otherwise.