“unidade como mudar o tamanho da malha” Respostas de código

Alterar o tamanho de um objeto de unidade

    public GameObject cube;
    public Vector3 sizeChange; // This has to be set for (x,y,z) in the editor
    //public float cubeSize = 0.2f;

    void OnMouseDown()
    {
        cube.transform.localScale = cube.transform.localScale - sizeChange;    
    }
Simple Simon

unidade como mudar o tamanho da malha

that's not for changing the mesh size! , you are changing the transform scale with that method!
Angel

Respostas semelhantes a “unidade como mudar o tamanho da malha”

Perguntas semelhantes a “unidade como mudar o tamanho da malha”

Mais respostas relacionadas para “unidade como mudar o tamanho da malha” em C#

Procure respostas de código populares por idioma

Procurar outros idiomas de código