Chapters

Add Chapters Per Action

This tutorial shows how to configure automatic chapter creation for each SceneGraph action.

Prerequisites

  1. XR Recorder is already configured in your project.

  2. Your flow contains SceneGraph actions (with meaningful action names when possible).

Setup

  1. Open the XR Recorder module asset.

  2. In Advanced Settings, find Chapter Mode.

  3. Set Chapter Mode to PerAction.

  4. Arm and start recording as usual.

  5. Perform actions in your flow.

Result

When Chapter Mode is set to PerAction, the recorder adds one chapter each time a SceneGraph action is initialized.

  • Chapter name uses the action’s ActionName.

  • If ActionName is empty, it falls back to the action ID.

You can then use chapter navigation in playback to jump between action points.

Add Custom Chapters

You can also add chapters manually by doing:

This pushes a chapter at the current time point during recording.

During playback you can get all of the chapters of the recording via:

Each ChapterInfo contains:

  • “Name” (string): The name of the chapter.

  • “Cursor” (double): The cursor position of this chapter.