Search Unity

Question How exactly does the animation event parameter "object" work?

Discussion in 'Animation' started by lejean, Jan 26, 2021.

  1. lejean


    Jul 4, 2013
    Am I supposed to assign the script containing the names of the functions for the event?

    If I leave it empty, does the animation do a "Find component with function name" type thing on the gameobject or something?

    I can imagine that it would more performant to say which script it should be looking for if it does work like that.

    Nvm: The object is just used the same as a parameter like float. All though I still wonder how the animation events get looked up on a game object with lots of components.
    Last edited: Jan 27, 2021