RectOffset.RectOffset Manual     Reference     Scripting  
Scripting > Runtime Classes > RectOffset
RectOffset.RectOffset

static function RectOffset () : RectOffset

static function RectOffset (left : int, right : int, top : int, bottom : int) : RectOffset

Description

Creates a new rectangle with offsets.

JavaScript
var rect = RectOffset (0, 10, 0, 10);

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public RectOffset rect = new RectOffset(0, 10, 0, 10);
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

public rect as RectOffset = RectOffset(0, 10, 0, 10)