Page 1 of 1
Play a popup animation
Posted: Wed Oct 04, 2023 4:12 pm
by hrohibil
Helllo Tony
When a player gets a variable set to true during a cnovasation i would like a prefab animation to play right in the middle of screen
Re: Play a popup animation
Posted: Wed Oct 04, 2023 9:23 pm
by Tony Li
Hi,
There are many ways to do that. Here's a simple one:
1. Put the prefab animation GameObject in the scene. Set it inactive.
2. In the dialogue entry where the variable becomes true, use the sequencer command SetActive(gameobject) to set the prefab GameObject active.
Re: Play a popup animation
Posted: Thu Oct 05, 2023 10:57 am
by hrohibil
Thank you Tony!!
Re: Play a popup animation
Posted: Thu Oct 05, 2023 11:13 am
by Tony Li
Glad to help!