- Home /
How would i instantiate a prefab in the animation curve event?
I know how to play a sound on a animation curve event but cannot get the event to instantiate a prefab.
Can you edit your question text to include the code for the function you are trying to call from the AnimationEvent ? That would make it easier to figure out why it doesn't show up in the Animation Event dropdown menu.
Answer by Lucas Meijer 1 · May 29, 2010 at 11:52 PM
You can have the animationevent call a script, which in turn could do the instantation of the prefab.
Hi Lucas
I know how to play a sound, which is calling a script to play a sound, this call to play the sound appears in my event and i can choose it, i understand the process, but im not geting my prefab intantiate script to be visible in the dropdown menu when clicking on my event in the animation window.