public FreePrefabComponent() { _uiObject = UnityUiUtility.CreateEmptyDisplayObject("Prefab"); RectTransform rt = _uiObject.gameObject.GetComponent <RectTransform>(); FreeLayoutConverter.FullScreen(rt); this.valueList = new HashSet <string>(); }
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; }