Unity 加载prefab到某个物体下

GameObject gb = AssetDatabase.LoadAssetAtPath("Assets/prefabs/荣誉边框.prefab", typeof(GameObject)) as GameObject;
     Instantiate(  gb,allContent.transform);

 https://blog.csdn.net/haowenlai2008/article/details/82807019

        GameObject gb = (GameObject)Resources.Load("Prefabs/loadVid");

 

posted on 2022-03-13 18:41  zqiang0803  阅读(100)  评论(0编辑  收藏  举报

导航