Notifications
Article
Mesh Slicer
Published 2 years ago
336
6
The process of slicing
Package on asset store: https://assetstore.unity.com/packages/tools/modeling/mesh-slicer-59618
The main stages of slicing is:
  1. Preparing data
  2. Find all renderers with meshes
  3. Slice meshes
  4. Finish

Preparing data stage

Here, in PrepareData method, you can do some pre-calculations and store it in slice data, it will be returned to you in finish method. For example, you can save the Id of the person who is going to chop the enemy's head and then get it in OnSliceFinished method. It is important in asynchronous mode, because you may have a lot of slicing at the same time and you do not know how was initiator of successful one.

Slice meshes

The plugin tries to slice each mesh separately. If, after slice, validation is not success, it do not slice this mesh.
The whole slice is success if we have meshes on both sides of the plane, even if no meshes was sliced.

Finish

Apply changes and invoke event handlers. I believe nothing is needed to be clarified there.
Stas Bz
Stas - Programmer
3
Comments
jh
jarmo hamalainen
3 months ago
Thanks. Must try that. That's why I ask it. => "it will not work in release mode more than one minute"
0
Stas Bz
3 months ago
Stas
jarmo hamalainenHi. I got free version working in my project, but only in editor. Project is Mixed Reality VR (UWP) IL2CPP. Does this work in that project type release version?
Only payed version work with release mode.
0
jh
jarmo hamalainen
3 months ago
Hi. I got free version working in my project, but only in editor. Project is Mixed Reality VR (UWP) IL2CPP. Does this work in that project type release version?
0
EY
Egecan Yıldırım
9 months ago
Hey Staz, I'm going to make an "iSlash Heroes" style game. Could you please review that game? Can I do the cutting control with this asset as in that game? This is very important to me, can you answer it? According to him, I will buy this asset. I am a student and I don't have much money. So I have to use my money properly. Thank you.
0
Stas Bz
9 months ago
Stas
Zico RitondaHai, i'm really interested in your mesh slicer asset and i've tried the demo. Is this asset can be used to cut mesh with custom shape or other than plane?
Hi. No. It can only be cut by plane.
0