Skip to main content

Testing Story

There are 2 ways to test your story in the Interactive Story App:

  1. From InitScene.scene
  2. From PlayScene.scene

Init Scene

Playing from InitScene.scene will start the story from the beginning, regardless of where you last left off. This is useful when you want to test the game from the start.

Steps to play from InitScene.scene:

  1. Navigate to InitScene.scene scene in Assets/_Main/Scenes and double-click to open it.
  2. You should see a window similar to this:
    Init Scene
  3. Click the Play Button at the top of the Unity Editor.
    Play Button
  4. The game will start in the Game window.

Play Scene

Playing from PlayScene.scene will start the story you have chosen inside the Debug folder directly without playing from the beginning. This is useful when you want to test a specific part of your story.

Steps to play from PlayScene.scene:

  1. Navigate to PlayScene.scene scene in Assets/_Main/Scenes and double-click to open it.
  2. You should see a window similar to this:
    Play Scene
  3. Navigate to Assets/_Main/Debug folder in the Project panel.
  4. You should find a scriptable object named Debug Play Data. Click it to view its properties in the Inspector panel.
    Debug Play Data
  5. In the Inspector panel, you can select the story you want to test from the Story dropdown.
    Select Story
  6. You can also select the chapter you want to start from the Chapter.
    Eg:
    • If you want to start from the beginning of the story, Update the Chapter field to 1, this will play the story of chapter_1.
    • If you want to start from the 2nd chapter of the story, Update the Chapter field to 2, this will play the story of chapter_2.
    • If you want to start from the 10th chapter of the story, Update the Chapter field to 10, this will play the story of chapter_30.
    danger

    You must ensure that the chapter you selected exists in the story you have chosen. If not, this will cause Errors in Unity Editor

  7. After you have modified the Debug Play Data, you could test your story by clicking the Play Button at the top of the Unity Editor.
    Play Button
  8. The game will start in the Game window.