Version: 2017.2

RectInt.ClampToBounds

Switch to Manual
public void ClampToBounds (RectInt bounds);

Parameters

bounds Bounds to clamp the RectInt.

Description

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