Version: 2019.2
public void ClampToBounds (RectInt bounds);

Parameters

boundsBounds to clamp the RectInt.

Description

Clamps the position and size of the RectInt to the given bounds.