Page 1 of 1

Two questions about active saver

Posted: Thu Mar 06, 2025 8:20 am
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?

Re: Two questions about active saver

Posted: Thu Mar 06, 2025 11:47 am
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.

Re: Two questions about active saver

Posted: Fri Mar 07, 2025 10:19 pm
by Lucian1899
Got it! Thanks so much, problem solved!

Re: Two questions about active saver

Posted: Fri Mar 07, 2025 11:23 pm
by Tony Li
Great! Happy to help.