Esempio n. 1
0
        public FreePrefabComponent()
        {
            _uiObject = UnityUiUtility.CreateEmptyDisplayObject("Prefab");
            RectTransform rt = _uiObject.gameObject.GetComponent <RectTransform>();

            FreeLayoutConverter.FullScreen(rt);

            this.valueList = new HashSet <string>();
        }
Esempio n. 2
0
        public override void SetPos(IComponentGroup freeUI, float x, float y, int width, int heigth, int relative, int parent)
        {
            RectTransform rt = _uiObject.gameObject.GetComponent <RectTransform>();

            FreeLayoutConverter.FullScreen(rt);

            this.relative = relative;
            this.parent   = parent;
            this.group    = freeUI;
            this.x        = x;
            this.y        = y;
            this.width    = width;
            this.height   = heigth;
        }