UpdateMesh() public method

public UpdateMesh ( Matrix4x4 matrix, List materials, List verts, List tris, List aoSpheres, int buildFlags, float adaptiveQuality, float aoDensity ) : void
matrix UnityEngine.Matrix4x4
materials List
verts List
tris List
aoSpheres List
buildFlags int
adaptiveQuality float
aoDensity float
return void
Ejemplo n.º 1
0
    void SwitchLeaves()
    {
        Tree treeObject = gameObject.GetComponent <Tree> ();

        TreeEditor.TreeData        treeData        = treeObject.data as TreeEditor.TreeData;
        TreeEditor.TreeGroupLeaf[] treeGroupLeaves = treeData.leafGroups;
        foreach (TreeEditor.TreeGroupLeaf treeGroupLeaf in treeGroupLeaves)
        {
            treeGroupLeaf.visible = !treeGroupLeaf.visible;
        }

        Material[] materials;
        treeData.UpdateMesh(treeObject.transform.worldToLocalMatrix, out materials);
    }