Search Unity

error 'Animation' AnimationEvent has no function name specified!

Discussion in 'Scripting' started by puddleglum, Nov 7, 2020.

Thread Status:
Not open for further replies.
  1. puddleglum

    puddleglum

    Joined:
    May 11, 2020
    Posts:
    412
    i get this function whenever i start my game. i have an animation for crossfade playing when i open it to transition between scenes. what does this error mean and how do i fix it?
     
    Vickey_Soni likes this.
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    Check if you inadvertently put an animation event into one of your animations but didn't connect it up to a function.

    Or maybe there was a function and it got renamed, not sure, but it's at least a few things to look at.
     
    Bunny83 likes this.
  3. puddleglum

    puddleglum

    Joined:
    May 11, 2020
    Posts:
    412
    oh ok thankyou :)
    ill check that
     
  4. puddleglum

    puddleglum

    Joined:
    May 11, 2020
    Posts:
    412

    ok i know where the error is coming from but i dont know how to fix it..... whenever i delete the animation on a crossfade gameobject canvas my fade animation stops working but if i leave it in, i get errors........ i made this animator one day and i now have no idea how i made it or how to fix it
    upload_2020-11-8_20-29-25.png



    also i looked online and in this case what does the function refer to. cause im a noob and dont know anything
     

    Attached Files:

  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    Doubleclick on the animator controller (this one is called Crossfade) and in that window you can inspect the individual states and transitions and and animations to find the callback it is complaining about.

    If you're not familiar with the above systems, there are a LOT of tutorials out there.
     
  6. puddleglum

    puddleglum

    Joined:
    May 11, 2020
    Posts:
    412
    ok :) ill look at some tutorials and see what you mean
     
  7. dinoelT

    dinoelT

    Joined:
    Nov 3, 2021
    Posts:
    1
    I'm using unity 2020, if anybody else encountered this and needs a tip.

    The red circle contains the button that creates the Event.
    The blue square contains the actual Event that was created. Just right click it and delete(there might multiple events)
    Hope this helps
     

    Attached Files:

  8. Andrew030303

    Andrew030303

    Joined:
    Feb 15, 2022
    Posts:
    1
  9. PlayerDev

    PlayerDev

    Joined:
    Mar 15, 2017
    Posts:
    15
  10. Baraiyashaktivan

    Baraiyashaktivan

    Joined:
    Apr 8, 2017
    Posts:
    5
  11. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
  12. Delforce

    Delforce

    Joined:
    Jun 3, 2015
    Posts:
    23
    Thanks dinoeIT that was the answer for me too.
     
Thread Status:
Not open for further replies.