unity texture different sized faces code example
Example: unity texture different sized faces
Vector2 SS = renderer.material.mainTextureScale; SS.x = transform.localScale.x; SS.y = transform.localScale.y; renderer.material.mainTextureScale = SS;
Vector2 SS = renderer.material.mainTextureScale; SS.x = transform.localScale.x; SS.y = transform.localScale.y; renderer.material.mainTextureScale = SS;