This commit is contained in:
Noah Pilarski 2022-05-29 15:19:28 -04:00
parent 33703dc221
commit 6d4ad5d531

View File

@ -23,8 +23,7 @@ namespace NewHorizons.Builder.Body
Mesh mesh = Icosphere.Build(4, module.scale, module.scale * 1.2f);
icosphere.AddComponent<MeshFilter>();
icosphere.GetComponent<MeshFilter>().mesh = mesh;
icosphere.AddComponent<MeshFilter>().mesh = mesh;
var cubeSphereMR = icosphere.AddComponent<MeshRenderer>();
cubeSphereMR.material = new Material(Shader.Find("Standard"));