Activate GameObject on variable condition
Posted: Tue Oct 22, 2019 6:22 pm
Hello,
I am trying to activate a GameObject, part of my Canvas (RectTransform) after the value of a variable is equal to true.
First of all I set the new variable in my database.
Then I have a game objects which controls the game with the Dialogue System Trigger component attached. So, after the action "Start Conversation" with the actual dialogue, I place a "Set GameObject Active/Inactive". I put there my Canvas->Gameplay object, but the script just takes out the Rect Transform component and I suppose it activate/deactivate it.
I would like to enable/disable the whole GameObject, is it possible with this component?
I am trying to activate a GameObject, part of my Canvas (RectTransform) after the value of a variable is equal to true.
First of all I set the new variable in my database.
Then I have a game objects which controls the game with the Dialogue System Trigger component attached. So, after the action "Start Conversation" with the actual dialogue, I place a "Set GameObject Active/Inactive". I put there my Canvas->Gameplay object, but the script just takes out the Rect Transform component and I suppose it activate/deactivate it.
I would like to enable/disable the whole GameObject, is it possible with this component?