top of page

オブジェクト生成位置指定(3D)

    //生成するオブジェクト
    public GameObject test;

    void Start () {
        //Instantiate( 生成するオブジェクト,  場所, 回転 );  回転はそのままなら↓
        Instantiate (test, new Vector3 (1.0f, 1.0f, 1.0f), Quaternion.identity);
    }

 

bottom of page