- Home /
Unity freeze at custom parameters for 'Unwrapping.GenerateSecondaryUVSet()'
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
Comment
Answer by John Silver Long · Jun 22, 2016 at 05:08 AM
this also happens in unity 4.7.1 and could not find much info about it.
Your answer
![](https://koobas.hobune.stream/wayback/20220612000604im_/https://answers.unity.com/themes/thub/images/avi.jpg)