Skip to main content

Section

A Section is a collection of stories grouped together under a specific category. To display stories in the game, you must first organize them into a Section file.

Each section you create will appear as a distinct category on the game's home screen, allowing players to easily browse different story collections.

Examples:

  • Editor's Picks
  • New Releases
  • Popular Stories
  • Drama

Steps:

  1. Navigate to your story's Sections folder in Assets/_Main/Story/Sections
  2. You can either use an existing one or create a new section.
    • To use an existing section, simply click on the section file to view it in the Inspector panel. Existing Section
    • To create a new section, right-click and select Create > Interactive Story > Section
      Create Section
  3. If you are creating new section, you can name the file using your desired section title. You may see the pre-created files as reference.
  4. Select the section to edit the properties in the Inspector panel.
  5. In the Id field, enter a unique identifier for the section. This ID is used internally by the game to reference the section.
    Eg: editors_picks, new_releases.
  6. In the Title field, enter the name of the section as you want it to appear in the game.
    Eg: Editor's Picks, New Releases. You may see that the title will be rendered in menu as shown below:
    Section Menu
  7. In the Story Metadatas, you need to specify which stories belong to this section by clicking the + button to add a new entry. After that, drag and drop the Story Metadata file you created earlier into the newly created entry.
    Add Story Metadata to Section
  8. Repeat step 7 to add more stories to the section if needed.
  9. Your section is now created and will appear in the game's home screen.
  10. To test your section, navigate to InitScene.scene in Assets/_Main/Scenes and double-click to open it. Then, click the Play Button at the top of the Unity Editor. The game will start in the Game window, and you should see your section listed on the home screen.
    Section in Game