using UnityEngine; using System.Collections; using System; [Serializable] public class UIPoint{ public bool Relative; public Vector2 Position; public Vector2 PixelPosition{ get{ if(Relative){ return new Vector2(Position.x * Screen.width, Position.y * Screen.height); }else{ return Position; } } } } public class UIItem : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }