Version 1.2.0 Released
Version 1.2.0 has been released! This update adds an advanced piece of functionality to Runtime Objects.
Typically, Runtime Objects can be thought of as a reflection of the internal story state of Ink, where your Ink Objects actually live. With version 1.2.0, however, you are now able to modify the current value of Runtime Objects from within Unity and push them back to the Ink story state!
To use this function, simply set the new desired value of the field, and then call PushInstanceFieldToInkRuntime on an InkObject interface. For example -
Instance.FirstName = "John"; PushInstanceFieldToInkRuntime(nameof(Instance.FirstName));
or alternatively -
Instance.FirstName = "John"; Instance.LastName = "Doe"; PushAllInstanceFieldsToInkRuntime();
Please be careful when using this feature. Unless you specifically call a Push command, the internal story state will desync from your Runtime Object in Unity. The next time the field is accessed from within the Ink Story, the old value will be used unless you call Push.
Files
Get Ink Objects
Ink Objects
Take an object-oriented approach to writing with Ink.
Status | Released |
Category | Tool |
Publisher | |
Author | Julian Kantor |
Genre | Interactive Fiction, Visual Novel |
Tags | c-sharp, design, ink, object-oriented, Text based, Unity, writing |
More posts
- Version 1.2.1 ReleasedMar 26, 2022
- Version 1.1.1 ReleasedMar 12, 2022
- 1.1.0 Released - Improved Integration with Ink RuntimeJul 04, 2020
- Version 1.0.2 ReleasedOct 21, 2019
- Version 1.0.1 ReleasedDec 25, 2018
Leave a comment
Log in with itch.io to leave a comment.