inkle / inkle/ink

How to Save/Load state

Open
#374 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

Hi,

I cannot achieve to save/load state of my ink stories. I have used inky to write my story, and integrated it in Unity 3d, with the blot example. Everything works fine, but I don't know how to save/load the state of the game.
In the manual says:

_Saving and loading
To save the state of your story within your game, call:
string savedJson = _inkStory.state.ToJson();
...and then to load it again:
_inkStory.state.LoadJson(savedJson);_

But I don't know what to do with it. Do I have to create a script?

Sorry, I don't know anything about programming, but it's the last thing I need to finish my project and don't make the player to start all over again everytime he runs the game.

Thank you very much.

JL Lopez Morales

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.