/// <summary> /// Create a selection frame. The method set is used during the creation. /// </summary> public SelectionFrame CreateSelectionFrame(Transform _parent, Vector3 _pos, Vector3 _size, Material _material = null) { GameObject go = Instantiate(prefabs["SelectionFrame"] as GameObject, _parent); SelectionFrame selectionFrame = go.GetComponent <SelectionFrame>(); selectionFrame.Set(_pos, _size, _material); popUpList.Add(go); return(selectionFrame); }