I’m trying to unwrap a generated mesh with Unwrapping.GenerateSecondaryUVSet(). When I try to use custom unwrap parameters with the class UnwrapParam as parameter Unity freezes. I initalized as following:
var Lightparams = new UnwrapParam() { angleError = 0.5f, areaError = 0.5f, packMargin = 0.5f, hardAngle = 45f};
I tried this even on a mesh with just two triangels, so I assume there is something wrong with those parameters or Unity.
Using Unity 5.12f1.
References:
UnwrapParam Class
Unwrapping Class