Пример #1
0
 public void UpdateMesh()
 {
     //Debug.Log("update mesh");
     if (this.IsValid)
     {
         skeleton.SetColor(this.color);
         spineMeshGenerator.Scale = canvas.referencePixelsPerUnit;             // TODO: move this to a listener to of the canvas?
         canvasRenderer.SetMesh(spineMeshGenerator.GenerateMesh(skeleton));
         this.UpdateMaterial();
     }
 }