2D Animation counting frames doesn´t work.
Hey could anyone give me a hint why this gives me an Error : Argument 0: Value is not a String
var myStats = mySpriteVisual.mainMaterial.mainPass.baseTex.control.getFramesCount();
print(myStats);
It is stupid but I cannot figure out how to print the Count. I thought that a string var takes any Values...
thanks eL
Hey eL,
correct me if I'm wrong, but you should be able to solve this just by converting your value to a String. So:
Pretty sure you solved it yourself already. Posting for future reference.
Cheers,
Luka
ahhhh - exactly... damn.
Thanks Luka.