Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RectOffset

Creates a new rectangle with offsets.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

RectOffset()

Creates a new rectangle with offsets.
public RectOffset()

RectOffset(int, int, int, int)

Creates a new rectangle with offsets.
public RectOffset(int left, int right, int top, int bottom)

Parameters

left


right


top


bottom