123456789101112131415 |
- using UnityEngine;
- using System.Collections;
- public class FullScreenUITexture : MonoBehaviour {
-
- void Start () {
- Debug.Log("Start");
- gameObject.transform.localScale = new Vector3(Screen.width, Screen.height, gameObject.transform.localScale.z);
- }
- void Update()
- {
- gameObject.transform.localScale = new Vector3(Screen.width, Screen.height, gameObject.transform.localScale.z);
- }
- }
|