ドキュメント

Unity Engine

Unity Engine

Clamp

Clamps the Vector3Int to the bounds given by min and max.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

Clamp(Vector3Int, Vector3Int)

Clamps the
Vector3Int
to the bounds given by
min
and
max
.
public void Clamp(Vector3Int min, Vector3Int max)

Parameters

The minimum bound.

The maximum bound.

Clamp(Vector3Int, Vector3Int)

Clamps the
Vector3Int
to the bounds given by
min
and
max
.
public void Clamp(in Vector3Int min, in Vector3Int max)

Parameters

The minimum bound.

The maximum bound.