Documentation

Unity Engine

Download Unity

Unity Engine

ClampToBounds

Clamps the position and size of this bounding box to the given bounds.
Read time 1 minuteLast updated a month ago

Definition

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

ClampToBounds(BoundsInt)

Clamps the position and size of this bounding box to the given bounds.
public void ClampToBounds(BoundsInt bounds)

Parameters

bounds

Bounds to clamp to.

ClampToBounds(BoundsInt)

Clamps the position and size of this bounding box to the given bounds.
public void ClampToBounds(in BoundsInt bounds)

Parameters

bounds

Bounds to clamp to.