Page 1 of 2

Dialogue not showing in game

Posted: Fri Oct 04, 2024 1:08 am
by Lizzie Lizdawg
Hello! I am having trouble using the dialogue system.
I have been following the Youtube tutorials by Pixel Crushers and everything seems to be going well, with creating conversations, setting up triggers and so on, but then in Game Mode, the text box for the dialogue isn't showing.

When in Game Mode I have the Dialogue box open with the conversation I am trying to run. I have the conversation set to On Use, when I go to the trigger I have programmed, no text appears, but when I press the Hot key to start conversation the first node in the conversation turns green.

So I believe everything is programmed correctly, just the text isn't showing.

I tried changing the depth of the main camera because I read that might be the problem, but that didn't fix the issue.

Please any advice is welcomed!

Re: Dialogue not showing in game

Posted: Fri Oct 04, 2024 7:59 am
by Tony Li
Hi,

Let's narrow down the issue.

Please temporarily assign the "Basic Standard Dialogue UI" prefab to your Dialogue Manager GameObject's Display Settings > Dialogue UI field. Then play the scene and start the conversation. Do you see your conversation in the basic dialogue UI?

If not, are there any errors or warnings in the Console window?

Re: Dialogue not showing in game

Posted: Sat Oct 05, 2024 12:31 am
by Lizzie Lizdawg
Hello,

Thank you for your response!

Basic Standard Dialogue UI, was selected the whole time and the dialogue didn't show.

Warnings and errors did pop up in the Console Window. Here are what they are:

Dialogue System: The scene is missing an EventSystem. Adding one.
UnityEngine.Debug:LogWarning (object)

Dialogue System: SelectorUseStandardUIElements can't find a StandardUISelectorElements component in the scene.
UnityEngine.Debug:LogWarning (object,UnityEngine.Object)

Coroutine couldn't be started because the the game object 'Basic Standard Quest Tracker HUD' is inactive!
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)

Re: Dialogue not showing in game

Posted: Sat Oct 05, 2024 12:53 am
by Tony Li
Hi,

The Dialogue Manager GameObject should have a child GameObject named "Canvas". Is this child GameObject active?

Does DemoScene1 play conversations properly?

Please try this in your scene:

1. Remove the Dialogue Manager GameObject.

2. Add this prefab to the scene: Assets > Plugins > Dialogue System > Prefabs > Dialogue Manager.

3. Assign your dialogue database to the new instance of the Dialogue Manager prefab that you added to the scene.

Then play the scene and let me know if the conversation appears.

Re: Dialogue not showing in game

Posted: Sat Oct 05, 2024 7:03 am
by Lizzie Lizdawg
Yes it works! Thank you so much! Much appreciated! :D

Re: Dialogue not showing in game

Posted: Sat Oct 05, 2024 9:47 am
by Tony Li
Glad to help!

If you're still having difficulty with your original scene (before swapping in a good copy of the Dialogue Manager) and you'd like help with it, just let me know.

Re: Dialogue not showing in game

Posted: Sun Oct 06, 2024 7:02 am
by Lizzie Lizdawg
Well, when I did delete and replace the Dialogue Manager, all the interactables on the game stop working. The portals to other scenes, the interactable talk button and pick up button.

Do you know why this could be happening?

Re: Dialogue not showing in game

Posted: Sun Oct 06, 2024 9:12 am
by Tony Li
Hi,

Are there any errors or warnings in the Console window?

Re: Dialogue not showing in game

Posted: Mon Oct 07, 2024 6:13 am
by Lizzie Lizdawg
Yes there are lots of these warnings -

NullReferenceException:Object reference not set an instance of an object. TransitionEnvironmentTrigger.Update() (at Assets/Everything/Prefabs/TransitionEnviromentTrigger.cs:47)

Re: Dialogue not showing in game

Posted: Mon Oct 07, 2024 8:28 am
by Tony Li
Hi,

That isn't a part of the Dialogue System. Can you fix that error and then check if there are any other errors, in particular Dialogue System-related errors?