Animating custom variables

Hi,

I’m new to Mecanim, so maybe this question sounds nonsense, but I thought I’d better ask just in case I miss something obvious:

As known Unity by default can’t access some variables in an animation (e.g. fields in subclasses, arrays etc…). I wonder if there is any way using Mecanim (perhaps in 5.0) to overcome this limitation. It’s possible to set Mecanim variables and states from script, but is the opposite possible, too? In other words, mapping animated values to a custom target by script.

Best regards,
Jake

If I understand your question correctly, this should be able to help:

Thanks, I’ll look into it.