- Home /
how to hide dialogue system until triggered ??
Hey, I'm still very new to code and have created a functioning dialogue system thanks to the Brackys tutorial on youtubeTutorial Link I have created the dialogue system on a new canvas to separate it from my original HUD canvas. Is there any way to set up an invisible collider outside my NPC and have the player trigger the dialogue to show up but otherwise its hidden? How would i go about the script for that? I cant quite figure it out :|
Thankyou, Chantelle
Answer by tormentoarmagedoom · Oct 02, 2019 at 07:50 AM
Hello there.
If is all dialogue inside the same gameobject, you can just activate/deactivate it when you want using
TheObject.SetActive(true);
// (or false)
Then you only need to activate it via trigger colliders. As you are new, i recommend you to watch some tutorial about OntriggerEnter and about trigger colliders.
Good luck!
Your answer
Follow this Question
Related Questions
How to display a characters "dialogue" when entering a collider? 1 Answer
Two separate OnTriggerEnter() functions playing at the same time. 1 Answer
Playing Dialogue on Trigger Enter without overlapping sound 1 Answer
Enter Key press event detect from textbox - Unity3D - C# 2 Answers
Dynamic Scrolling Text for a combat log 0 Answers