Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback [Animation Event] Allow to call Methods with a Bool parameter

Discussion in 'Animation' started by AdrienVR, Jan 30, 2020.

  1. AdrienVR

    AdrienVR

    Joined:
    Apr 6, 2016
    Posts:
    17
    Hello,

    Could you please add methods with a bool parameter to the list of method we can use in AnimationEvents?
    Or explain why you can't?

    Also why can't we post Feature Request in this forum?

    Thanks for listening :)
     
    _Prism_ likes this.
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,534
    Adding another parameter type would decrease the efficiency of the system for everyone. More memory usage, more garbage allocation, slower serialization and deserialization, and possibly slower event invocation depending on how the system actually determines which method to call.

    Just use an int parameter with 0 = false and 1 = true.