I made a prefab object with an animator and animation attached to it. I copied this prefab on a scene multiple times. Now, I'd like to run this animation through the Action list in all of the instances of this prefab at once, with a single Object: Animate action (not create multiple actions for each instance). Is this possible?
I tried to play with the constant ID numbers, retain in prefab etc, but nothing worked. When I manually change the IDs of the scene instances to the same number as the original prefab, they change back to unique numbers after I run the game.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You would need a custom script that gathers up all of the objects to affect, and then run the ActionList multiple times - using a parameter to change which Animator it affects.
Though, if you're doing all that only run a single Animate action, it's probably easier to just handle the animation in the script itself.
I see, so there is no simple way to do this. Since I cannot write scripts, I will just create an action list running Object: Animate actions for all the affected objects.
What I am trying to achieve is to mark all the hotspot/interaction areas with a sparkle animation when a special button is pressed. I know AC has the highlight feature, but it does not work well for my 2D sprite-based game.