📜  在父级中实例化 unity - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:42.338000             🧑  作者: Mango

代码示例1
var myNewSmoke = Instantiate (poisonSmoke, Vector3(transform.position.x,transform.position.y, transform.position.z) , Quaternion.identity);
  myNewSmoke.transform.parent = gameObject.transform;