C
C#3y 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;
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
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server