Configuring the Pause feature

To add functionality to paused and resumed events, you can add custom callbacks to the On Paused Event and On Resumed Event attached to the PauseBehaviour script in the StrivrSDKPauseManager prefab.

  1. To trigger callbacks when a user pauses or resumes, add to the On Resumed Event and On Paused Event lists in the PauseBehaviour script attached to StrivrSDKPauseManager.

    pause on resume
  2. To make other game objects interactable in a paused state (not recommended), you can add an InteractionLayerMask serialized field in a script attached to the game object, and in the editor assign it to the Pause (or your custom name) layer.