Version: 2018.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.