文档

Unity Engine

Unity Engine

FrameSelected

Frame the object selection in the Scene view.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

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.