Blogger Information
Blog 95
fans 0
comment 11
visits 249083
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Unity3d创建物体的方法
龍__遇见彩虹的博客
Original
2310 people have browsed it

直接创建物体

1.

       void Start () {
        GameObject go = new GameObject();//初始物体位置在原点
    }


构造方法

2.

    public GameObject prefab;
    
    void Start () {
        GameObject.Instantiate(prefab);//初始位置为prefab的坐标位置
    }


3.

    void Start () {
        GameObject.CreatePrimitive(PrimitiveType.Plane);//创建原始的物体,位置在原点
    }


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post