private void Awake() { if (_mesh == null) { var builder = new IcosahedralSphereBuilder(); _mesh = builder.Build(Subdivisions, Radius); } GetComponent<MeshFilter>().mesh = _mesh; }
public void OnDrawGizmos() { if (_mesh == null) { var builder = new IcosahedralSphereBuilder(); _mesh = builder.Build(Subdivisions, Radius); } GetComponent<MeshFilter>().mesh = _mesh; }