How to remove story DialogueSystemInkIntegration

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
pmand
Posts: 15
Joined: Wed Mar 01, 2023 1:09 pm

How to remove story DialogueSystemInkIntegration

Post by pmand »

I've been using DialogueSystemInkIntegration to load my ink stories during runtime using AddStory. It works great.
But now I want to be able to remove a story or all stories (basically resetting DialogueSystemInkIntegration database) during runtime. I searched but there is no RemoveStory function in DialogueSystemInkIntegration .
Is there a way to do this?
User avatar
Tony Li
Posts: 21050
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to remove story DialogueSystemInkIntegration

Post by Tony Li »

Hi,

If you want to reset the DialogueSystemInkIntegration database, use DialogueSystemInkIntegration.instance.ResetStories().

There's no RemoveStory() method for individual stories, but the class is virtual so you can make a subclass to add that if necessary. (Most people just need the built-in ResetStories().)
Post Reply