Timeline - Animating Prefabs after Instantiating them
I have a model that runs around the map and triggers the spawn of various humanoid prefabs.
How do I then animate those prefabs after they have been instantiated so they move around with my guy or around the map.
I can only see the instantiated prefabs in game mode where I can't make changes. And it doesn't show the instantiated prefabs when I scrub my timeline bar around not in game mode.
Thank you.
I'm not sure if this works with your gameobject/prefab structure, but would it work for you to have a script and/or an Animator on the prefab so you can do something on the instances when it's first enabled or awoken?
Answer by Dreamcube017 · Aug 29, 2018 at 08:19 PM
I am having this same issue. I want to animate something in the timeline, but the controller of that animation clip is in a prefab that doesn't exist until the level starts. SO I'm not sure how to do it. Right now, I am just playing a clip from a GameObject variable, but I can't put variables in the Timeline. They need specific objects.
Your answer
![](https://koobas.hobune.stream/wayback/20220612135724im_/https://answers.unity.com/themes/thub/images/avi.jpg)