Page 1 of 1
Make game object active on specific node
Posted: Tue Sep 06, 2022 8:36 am
by Ekta Bhutwala
Hii
How can i make gameobject or it's component active after specific node of dialog tree?
Re: Make game object active on specific node
Posted: Tue Sep 06, 2022 11:05 am
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.
Re: Make game object active on specific node
Posted: Tue Sep 06, 2022 1:19 pm
by Ekta Bhutwala
Yea it's working perfectly. Thanks for quick reply.