Documentation

Unity Engine

Unity Engine

Clamp(Vector2Int, Vector2Int)

Clamps the Vector2Int to the bounds given by min and max.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public void Clamp(Vector2Int min, Vector2Int max)

Parameters

The minimum bound.

The maximum bound.