Issue with Duplicate Subtitles for Textline UI
Posted: Sat Jul 27, 2019 10:02 am
Hi there!
First of all thank you Tony for all the support. I solved many of my other questions just by searching this forum. I hope this can help some others as well.
I'm setting up a Textline UI dialogue that gets triggered by a button, but I want to be able to open/close the chat box. I wrote a script to try to handle it, but it's creating a lot of duplicate subtitles whenever I open and close again.
Could you help me figure out what's going on? I've tried to implement a few of solutions for similar issues on the forum but I think I'm just a bit nooby at C# and Unity. I recorded a video and included the script. Let me know if there's any other info you need. Thank you very much!
Video:
Script(attached to the NPC obj with Dialogue System Trigger, called by the button object):
Also... please don't hold back on any tips/advice if you think my approach and understanding of DS is way off. Thank you very much!!
First of all thank you Tony for all the support. I solved many of my other questions just by searching this forum. I hope this can help some others as well.
I'm setting up a Textline UI dialogue that gets triggered by a button, but I want to be able to open/close the chat box. I wrote a script to try to handle it, but it's creating a lot of duplicate subtitles whenever I open and close again.
Could you help me figure out what's going on? I've tried to implement a few of solutions for similar issues on the forum but I think I'm just a bit nooby at C# and Unity. I recorded a video and included the script. Let me know if there's any other info you need. Thank you very much!
Video:
Script(attached to the NPC obj with Dialogue System Trigger, called by the button object):
Also... please don't hold back on any tips/advice if you think my approach and understanding of DS is way off. Thank you very much!!