Hii
How can i make gameobject or it's component active after specific node of dialog tree?
Make game object active on specific node
-
- Posts: 40
- Joined: Mon Sep 05, 2022 5:40 am
Re: Make game object active on specific node
In the Sequence field, use the SetActive() sequencer command to activate a GameObject or SetEnabled() to enable a component. Examples:
Alternatively, use an OnExecute() scene event.
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.
-
- Posts: 40
- Joined: Mon Sep 05, 2022 5:40 am
Re: Make game object active on specific node
Yea it's working perfectly. Thanks for quick reply.