using System.Collections; using System.Collections.Generic; using UnityEngine; public class InstantiateTransferPanel : MonoBehaviour { public GameObject prefab; void Start () { prefab = Resources.Load("4GTransfer/4GPicturePanel") as GameObject; GameObject panel = Instantiate(prefab, transform); panel.name = prefab.name; } }