Play a popup animation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Play a popup animation

Post 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
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Play a popup animation

Post 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.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Play a popup animation

Post by hrohibil »

Thank you Tony!!
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Play a popup animation

Post by Tony Li »

Glad to help!
Post Reply