Pixel inset used for pixel adjustments for size and position.
transform.position = Vector3.zero; transform.localScale = Vector3.zero; guiTexture.pixelInset = Rect (50, 50, 100, 100);
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { transform.position = Vector3.zero; transform.localScale = Vector3.zero; guiTexture.pixelInset = new Rect(50, 50, 100, 100); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: transform.position = Vector3.zero transform.localScale = Vector3.zero guiTexture.pixelInset = Rect(50, 50, 100, 100)