Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Clamp(Vector3Int, Vector3Int)

Clamps the Vector3Int to the bounds given by min and max.
Read time 1 minuteLast updated 6 days ago

Definition

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

Parameters

The minimum bound.

The maximum bound.