Forum Posts

kanekoyoshiaki
Apr 17, 2021
In Mesh Slicer
Is it possible to split a mesh into three or more meshes using the Start method? The following code does not seem to slice into multiple meshes. I may be making a big mistake. public GameObject _target; void Start() { var sliceId = SliceIdProvider.GetNewSliceId(); var sliceable = _target.GetComponent<IBzSliceableNoRepeat>(); for (int i = 0; i < 10; i++) { if (sliceable != null) { sliceable.Slice(new Plane(Vector3.up, 0.1f*i),sliceId,null); } } }
0
2
83
 
kanekoyoshiaki
More actions