RectInt.ClampToBounds

public void ClampToBounds(RectInt bounds);

Parameters

boundsBounds to clamp the RectInt.

Description 描述

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