Hello. I've rigged and animated a character and it worked perfectly well in my original scene where I created it.
But then I had made a prefab and copied it to another empty scene. I have one clipping layer for the eyes. And for some reason, this layer does not renders correctly anymore. Well, it renders and animates, but the mask is completely wrong:

Do you have any ideas why is it?
Hi!
If clipping layers aren't working, it's usually due to one of the following reasons:
1. The way clipping is handled is different depending on URP or Built-In.
So if you don't select the option that fits your project when baking, the clipping layer won't work properly.
However, in your case, it works properly in the original scene, so we don't think this is the cause.
2. Even if there are more than two cameras that can render the character, the clipping layer may not work properly.
Since AnyPortrait's default options assume that there is one camera, rendering errors may occur if there are more than two cameras.
In this case, you can also fix the problem by changing the Bake options.
Please check if there are more than two cameras in the scene.
The following manual may help you with this issue.
https://rainyrizzle.github.io/en/AdvancedManual/AD_MultipleCameras.html
3. If other scripts or assets involved in camera movement or rendering are executed after AnyPortrait, the clipping layer may not be rendered properly.
In this case, you need to change the script execution order of AnyPortrait.
You can see the manual for the script execution order at the following link.
https://rainyrizzle.github.io/en/AdvancedManual/AD_ExecutionOrderProblem.html
The above is covered in detail in the following manual.
https://rainyrizzle.github.io/en/AdvancedManual/AD_NoRenderedClippedMesh.html
If your problem persists, please leave a comment!
Thank you.