Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

Bug Call AudioSource from AnimationEvent

Discussion in 'Animation' started by alkaitagi, Nov 22, 2020.

  1. alkaitagi

    alkaitagi

    Joined:
    Dec 8, 2016
    Posts:
    84
    I have Animator with a controller that has one clip/state. One same object I have AudioSource. I'd like to call AudioClip.Play() from the clip's event. The problem is, no function is displayed in the event's dropdown.

    upload_2020-11-22_18-27-39.png upload_2020-11-22_18-27-58.png
     
  2. alkaitagi

    alkaitagi

    Joined:
    Dec 8, 2016
    Posts:
    84
    Function names are just absent in the even dropdown. It doesn't make any sense that custom MonoBehaviours're supported, but built-in components aren't.
     
unityunity