📜  实例化比例对象 - C# 代码示例

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

代码示例1
GameObject newObject = Instantiate(objectPrefab, location, Quaternion.identity) as GameObject;  // instatiate the object
newObject.transform.localscale = new Vector3(whatever.x, whatever.y, whatever.z); // change its local scale in x y z format