Chapter 9: Story API – Observing and Reacting to Story Events
In this chapter, we will explore how changes in a running ink story can trigger events in Unity. We will learn how the ObserveVariable() and ObserveVariables() methods of the Story API, as provided by the ink-Unity Integration plugin, allow you to prepare functions to react to future events in Unity. We will begin by observing a single variable and then move on to learn how to watch multiple values.
In Chapter 8, Story API – Accessing ink Variables and Functions, the focus was on controlling an ink story by calling its functions and changing its values from Unity. This chapter reverses the emphasis between the two systems. In this chapter, we will explore how narrative events, such ...
Get Dynamic Story Scripting with the ink Scripting Language now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.