Dialogue not showing in game

Announcements, support questions, and discussion for the Dialogue System.
Lizzie Lizdawg
Posts: 6
Joined: Fri Oct 04, 2024 12:58 am

Dialogue not showing in game

Post 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!
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue not showing in game

Post 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?
Lizzie Lizdawg
Posts: 6
Joined: Fri Oct 04, 2024 12:58 am

Re: Dialogue not showing in game

Post 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)
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue not showing in game

Post 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.
Lizzie Lizdawg
Posts: 6
Joined: Fri Oct 04, 2024 12:58 am

Re: Dialogue not showing in game

Post by Lizzie Lizdawg »

Yes it works! Thank you so much! Much appreciated! :D
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue not showing in game

Post 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.
Lizzie Lizdawg
Posts: 6
Joined: Fri Oct 04, 2024 12:58 am

Re: Dialogue not showing in game

Post 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?
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue not showing in game

Post by Tony Li »

Hi,

Are there any errors or warnings in the Console window?
Lizzie Lizdawg
Posts: 6
Joined: Fri Oct 04, 2024 12:58 am

Re: Dialogue not showing in game

Post 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)
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue not showing in game

Post 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?
Post Reply