Rect myRect = new Rect(0, 0, 100, 50);
if (myRect.Contains(new Vector2(25, 25))) { Debug.Log("Point is inside Rect."); }
myRect.width += 10; myRect.height += 10;This code increases the width and height of the Rect object myRect by 10 units each. The UnityEngine Rect class is part of the Unity engine's core library, which is included with all Unity installations.