기술 자료

Unity Engine

Unity Engine

Clamp

Clamps the Vector2Int to the bounds given by min and max.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

Clamp(Vector2Int, Vector2Int)

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

Parameters

The minimum bound.

The maximum bound.

Clamp(Vector2Int, Vector2Int)

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

Parameters

The minimum bound.

The maximum bound.