实例化预设
Instantiate(prefab,位置,旋转);
//Quaternion.identity表示不旋转初始值

无论实例化的是prefab的组件还是GameObject,都是这个GameObject


首页 我的博客
粤ICP备17103704号