Make game object active on specific node

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Ekta Bhutwala
Posts: 40
Joined: Mon Sep 05, 2022 5:40 am

Make game object active on specific node

Post by Ekta Bhutwala »

Hii

How can i make gameobject or it's component active after specific node of dialog tree?
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: Make game object active on specific node

Post by Tony Li »

In the Sequence field, use the SetActive() sequencer command to activate a GameObject or SetEnabled() to enable a component. Examples:

Code: Select all

{{default}};  // Also play the default sequence.
SetActive(Door, true);  // Activate the GameObject named Door.
SetEnabled(Collider, true, Door);  // Enable the Collider component on the GameObject named Door.
Alternatively, use an OnExecute() scene event.
Ekta Bhutwala
Posts: 40
Joined: Mon Sep 05, 2022 5:40 am

Re: Make game object active on specific node

Post by Ekta Bhutwala »

Yea it's working perfectly. Thanks for quick reply.
Post Reply