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.
shapeSettings.radius = 10
shapeSettings.radius = 10
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;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;