LogicalError / realtime-CSG-for-unity

Realtime-CSG, CSG level editor for Unity
https://realtimecsg.com
MIT License
761 stars 80 forks source link

Layers of children get cleared on play / build #293

Closed lazlo-bonin closed 2 years ago

lazlo-bonin commented 5 years ago

I've noticed layers of any child of any CSG model get assigned to that model's layer on play / build.

This is due to the AssignLayerToChildren call in MeshInstanceManager.OnBuild.

This causes plenty of issues in my setup though, where sometimes I will add non-CSG elements with specific layers as children of the CSG model.

So far it seems that disabilng the call doesn't do any harm, but I'm not sure if it could.

LogicalError commented 4 years ago

Can you try version 1.558, this should've been fixed there?