Easy Chapter Generator
EnglishEspañol

Practical guide: complete from another asset

Keep the third-party callback in a project-owned bridge. When the external system confirms the real condition, resolve ChapterManager.Instance, require HasActiveObjective, compare CurrentObjectiveId with the expected stable ID, and call CurrentChapter.TryCompleteObjective(expectedId). Use the bool result to distinguish accepted progression from a stale or duplicated callback.

The bridge should compile in an integration assembly that owns the external package dependency. Core remains vendor-neutral and does not need that asset installed.

Practical guide: activate objects at the correct edge

Desired resultConfigure
Show an interactable when the row truly beginsActivate On Start
Hide a blocker before the start event callbackDeactivate On Start
Reveal the next visual cue after accepted completionActivate On Completion
Remove the completed task propDeactivate On Completion
Let project code decide a complex stateUse the corresponding UnityEvent once, not duplicate array entries

Start actions wait for Start Delay and the external-animation gate. Completion arrays run after terminal persistence and before the completion UnityEvent. Skipped rows run neither side.

Make the boundary robust

  • Unsubscribe vendor callbacks when the bridge disables.
  • Reject callbacks for a different active ID.
  • Do not retry endlessly after false; determine whether the callback was early, late, or misconfigured.
  • Make project-side visual activation idempotent.
  • Reset or respawn external content explicitly on Chapter restart.
  • Use a custom Objective subclass when the same detector is reused in several scenes.

Example: interaction asset unlocks a door

  1. 1
    Create an Ordered Objective named Use the access terminal.
  2. 2
    Add the locked-door marker to Activate On Start.
  3. 3
    In the external interaction success callback, call the bridge with the exact Objective ID.
  4. 4
    Add the open-door object to Activate On Completion and the locked version to Deactivate On Completion.
  5. 5
    Test an early callback, success, duplicate callback, and Chapter restart. Only success should advance once.