📜  实例化 ui - 任何代码示例

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

代码示例1
GameObject button = Instantiate(Resources.Load("UI/Dialogue/Button"), new Vector3(0, 0, 0), Quaternion.identity, MyCanvas.transform) as GameObject;