Changes are not applied during gaming

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
rahsu123
Posts: 10
Joined: Sat Nov 23, 2024 12:12 am

Changes are not applied during gaming

Post by rahsu123 »

Hello, I encountered some issues while using the dialogue system. When the game is running, I used code to modify the structure of the conversation, such as adding a link to a particular node. However, I found that these changes were not applied immediately. Instead, they only took effect after I restarted the game. Do I need to call some methods to make these changes be applied immediately within the game?
Attachments
img_v3_02k7_e92154a3-80f0-431f-9679-486857bee14g.jpg
img_v3_02k7_e92154a3-80f0-431f-9679-486857bee14g.jpg (115.4 KiB) Viewed 1112 times
rahsu123
Posts: 10
Joined: Sat Nov 23, 2024 12:12 am

Re: Changes are not applied during gaming

Post by rahsu123 »

Here is a Link that I dynamically added during the game runtime using the code above. This link is displayed in red. Perhaps there is an issue with my method of adding it? I would be very grateful if you could help me identify the problem.
Attachments
img_v3_02k7_b320ba86-41ea-4d08-b2ce-a60b81676a3g.jpg
img_v3_02k7_b320ba86-41ea-4d08-b2ce-a60b81676a3g.jpg (102.32 KiB) Viewed 1084 times
User avatar
Tony Li
Posts: 22886
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changes are not applied during gaming

Post by Tony Li »

Hello,

Tick the Dialogue Manager's Other Settings > Instantiate Database. Then access the database through the C# property DialogueManager.masterDatabase. Modify this copy.
rahsu123
Posts: 10
Joined: Sat Nov 23, 2024 12:12 am

Re: Changes are not applied during gaming

Post by rahsu123 »

Problem is solved,appreciate your help.
User avatar
Tony Li
Posts: 22886
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changes are not applied during gaming

Post by Tony Li »

Glad to help!
Post Reply