- 已编辑
SkeletonGraphic is a white block when it was initialized
I update spine to the newest version. But I find a problem. At the moment of initlization of Prefab(SkeletonGraphic), it appears a white block with one frame.
If i set freeze to true after created, it will be a white block always.
This problem is weird,please help us.
Thank you a lot
Which version of the spine-unity runtime are you using (the latest 3.8 or 4.0-beta runtime)?
Which version of Unity?
What are your settings at the SkeletonGraphic component, could you please show a screenshot of the Inspector, with the Advanced
section expanded? Do you have Advanced - Multiple Canvas Renderers
enabled?
In general please always provide as much context information up front as possible, or send us a minimal Unity project that still shows the problem (you can send it as a zip package to contact@esotericsoftware.com). Otherwise days will pass unnecessarily until you read and answer our request.
We have an issue ticket here which deals with this issue, or a very similar issue:
https://github.com/EsotericSoftware/spine-runtimes/issues/1875
Most likely it should be resolved when this ticket is done. Still, a reproduction Unity project would help us test for your issue more efficiently.
Yes, it is lasted version.And i use Multiple Canvas Renderers.
My unity version is 2018.4.30f1
I fixed it with one line code:
if (allowMultipleCanvasRenderers)
{
canvasRenderer.Clear();
UpdateMesh();//added
}
Does it caused other problem?
Harald :Which version of the spine-unity runtime are you using (the latest 3.8 or 4.0-beta runtime)?
hannibald :Yes, it is lasted version.
3.8 or 4.0-beta?
hannibald :I fixed it with one line code:
if (allowMultipleCanvasRenderers)
{
canvasRenderer.Clear();
UpdateMesh();//added
}
Adding an UpdateMesh()
call should not cause any problems.