Pharan escribióNot sure why that wouldn't work. We'll check it out.
But SkeletonGraphic itself (because it's a MaskableGraphic) also has a color
property. You can probably use that too.
Hi,
I have tried it with the colour property too and it doesn't change either.
public void Update()
{
if (Input.GetKeyDown("space"))
SetAlpha(0.1f);
Debug.Log(GetSkeleton.Skeleton.a);
}
public void SetAlpha(float value)
{
// Just for testing if it does something.
Color colour = new Color(value, value, value, value);
GetSkeleton.Skeleton.SetColor(colour);
}
Every frame says that the alpha is 1.0. However, when I press the space button, the debug output puts only once -> 0.1. But, the next frames starts to output 1.0 again. Weird. Any idea?
Thanks.