Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Call AudioSource from AnimationEvent

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

  1. alkaitagi

    alkaitagi

    Joined:
    Dec 8, 2016
    Posts:
    87
    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:
    87
    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.