Search Unity

Animating custom variables

Discussion in 'Animation' started by Jake-L, Feb 24, 2015.

  1. Jake-L

    Jake-L

    Joined:
    Oct 17, 2009
    Posts:
    397
    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
     
  2. Griautis

    Griautis

    AI & Physics STE Unity Technologies

    Joined:
    Jan 26, 2013
    Posts:
    63
  3. Jake-L

    Jake-L

    Joined:
    Oct 17, 2009
    Posts:
    397
    Thanks, I'll look into it.