@[gelöscht]
hi Pharan
my spine has multi-altas,my project really need Draw spine on UGUI (CanvasRnderer)。 i need MASK ,depth ,and so on 。
i make some change with SkeletonGraphic.cs
dont use the mainTexture , please override UpdateMaterial, set materialCount to meshs materials count . call canvasRenderer.SetMaterial(material, i);
the Origin in Graphic.cs
protected virtual void UpdateMaterial()
{
if (!IsActive())
return;
canvasRenderer.materialCount = 1;
canvasRenderer.SetMaterial(materialForRendering, 0);
canvasRenderer.SetTexture(mainTexture);
}
my test result on company. tomorrow , i upload the screenshot and code.
the result is main material is ok, but the other material is wrong for mesh , do you know why ? . just one step to success
i think is the mesh not set vertex for altas Material. the generate mesh and material and setvertex logic is on skeletonrender , i am not really understand. please help add for SkeletonGraphic,
sorry for my bad english . i am a chinese