Search Unity

New Event Function in 4.3

Discussion in 'Animation' started by VhmSephiroth, Nov 25, 2013.

  1. VhmSephiroth

    VhmSephiroth

    Joined:
    Nov 25, 2013
    Posts:
    3
    Hello i saw that unity has implemented a new event function in the clips (see picture), but how i can get access to it ? $AnimationEvent.jpg
     
  2. SunnySunshine

    SunnySunshine

    Joined:
    May 18, 2009
    Posts:
    977
    During import in the inspector. Select your model and go to the animation tab in the inspector. Only seems to work for mecanim (not legacy).
     
  3. VhmSephiroth

    VhmSephiroth

    Joined:
    Nov 25, 2013
    Posts:
    3
    Thanks for the quick Reply.
    I have already my model at Generic but i dont now how to add it to a script.
    It says only that test has not a reciever.
     
  4. VhmSephiroth

    VhmSephiroth

    Joined:
    Nov 25, 2013
    Posts:
    3
    Ok i found the Problem - $AnimationEvent2.jpg
    The Script to catch the event must be on the same Hierarchy as the Animator.
    Is there are other solution to catch the event on different scripts except to make a script to handle this ?