RebuildMesh() public method

public RebuildMesh ( ) : void
return void
示例#1
0
    public override void BuildMesh(int page, bool front)
    {
        if (!typo)
        {
            typo = gameObject.GetComponent <TypogenicText>();
            mesh = typo.m_Mesh;
        }

        int index = page * 2;

        if (!front)
        {
            index++;
        }

        if (index < text.Count)
        {
            typo.Text = text[index];
            typo.RebuildMesh();
            mesh = typo.m_Mesh;
        }
    }