示例#1
0
        private void SetupPrefIntoContainer(Transform containerTrans, StigmataDataItem stigmata)
        {
            containerTrans.DestroyChildren();
            GameObject obj2 = UnityEngine.Object.Instantiate <GameObject>(Miscs.LoadResource <GameObject>(stigmata.GetImagePath(), BundleType.RESOURCE_FILE));

            obj2.transform.SetParent(containerTrans, false);
            obj2.gameObject.SetActive(true);
            obj2.GetComponent <RectTransform>().anchoredPosition = Vector2.zero;
        }