ドキュメント

Unity Engine

Unity Engine

EncodeSelectionId(int)

Translates a single integer picking index into a Vector4 selectionId value. The Vector4 selectionId is used to render the picking render textures during picking rendering.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static Vector4 EncodeSelectionId(int pickingIndex)

Parameters

pickingIndex

The picking index to encode. For example, a picking index passed from RenderPickingArgs.pickingIndex).

Returns

Type

Description

Vector4The Vector4
selectionId
value used for rendering.

Remarks