StretchToScreen.cs 254 B

12345678910111213
  1. using System;
  2. using UnityEngine;
  3. namespace Leap.Unity
  4. {
  5. public class StretchToScreen : MonoBehaviour
  6. {
  7. private void Awake()
  8. {
  9. base.GetComponent<GUITexture>().pixelInset = new Rect(0f, 0f, (float)Screen.width, (float)Screen.height);
  10. }
  11. }
  12. }