C#C
C#4y ago
Zenternion

Scale not changing UNITY

The mesh localScale doesent change except if I remove all of the objects first and run it again which I try to do in the code but doesent work.

Object cityMesh = Object.Instantiate(cityToUse, cityPosition, cityRotation, cityObject.transform);
cityMesh.name = $"City Mesh {i + 1}";
GameObject cityMeshGameObject = GameObject.Find(cityMesh.name);

cityMeshGameObject.transform.localScale *= shapeSettings.radius;

shapeSettings.radius = 10
Was this page helpful?