Two questions about active saver

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Lucian1899
Posts: 20
Joined: Wed Dec 13, 2023 9:23 am

Two questions about active saver

Post by Lucian1899 »

Hi there, I have two questions about active saver, could you please help me figure it out?Thank you very much!

1. I want to chage the active/inactive state of a gameobject's child object during the conversations, I tried to add active saver component to itself/its father/another object, but still not work, how should I set the saver?

2.There is a panel with Canvas Group component in my game, this panel is not interactable at the beginning, and it will become interactable after a conversation, how could I save its interactable state?
User avatar
Tony Li
Posts: 22886
Joined: Thu Jul 18, 2013 1:27 pm

Re: Two questions about active saver

Post by Tony Li »

Hi,
Lucian1899 wrote: Thu Mar 06, 2025 8:20 am1. I want to chage the active/inactive state of a gameobject's child object during the conversations, I tried to add active saver component to itself/its father/another object, but still not work, how should I set the saver?
Only put the Active Saver on the GameObject if the GameObject starts active in the scene on load. Otherwise put it on a different GameObject and assign the original GameObject to the Active Saver's Target field.

Note: If the GameObject itself is the conversation's actor or conversant, the SetActive() sequencer command won't allow you to deactivate it.
Lucian1899 wrote: Thu Mar 06, 2025 8:20 am2.There is a panel with Canvas Group component in my game, this panel is not interactable at the beginning, and it will become interactable after a conversation, how could I save its interactable state?
If you enable/disable the CanvasGroup component, use an EnabledSaver to save its enabled/disabled state.
Lucian1899
Posts: 20
Joined: Wed Dec 13, 2023 9:23 am

Re: Two questions about active saver

Post by Lucian1899 »

Got it! Thanks so much, problem solved!
User avatar
Tony Li
Posts: 22886
Joined: Thu Jul 18, 2013 1:27 pm

Re: Two questions about active saver

Post by Tony Li »

Great! Happy to help.
Post Reply