Page 1 of 1

How to remove story DialogueSystemInkIntegration

Posted: Mon Jun 10, 2024 11:24 pm
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?

Re: How to remove story DialogueSystemInkIntegration

Posted: Tue Jun 11, 2024 8:19 am
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().)