Setup

Step 1: Add PlayAI Blueprint to Your Project

  1. Add PlayAI Component:

    • Add the PlayAI Component to your game’s main character or player controller.

    • This component will handle recording and other PlayAI functionalities.

  2. Add the Opt-In Prompt UI:

    • Design a UI widget in Unreal Engine that will serve as the opt-in prompt.

    • The widget should include options for "Opt In", "Learn More", and "Ignore".

Step 2: Implement the Recording Control Logic

  • Recording on Game Start:

    • Use Blueprint nodes to automatically start recording when the game instance begins if the player has opted in.

  • Stopping Recording on Game End:

    • Use Blueprint nodes to stop recording when the game session ends.

Opt-In Controls Implementation

  1. Display Opt-In Prompt:

    • On game start, check if the player has opted in using a saved variable (OptInStatus).

    • If not, display an opt-in UI widget with options for "Opt In", "Learn More", and "Ignore".

  2. Calling the Opt-In Method:

    • When the player selects "Opt In", use Blueprint or C++ to save their decision, share the player information, and start recording the gameplay session.

    • If "Ignore" is selected, dismiss the prompt without recording, and re-prompt after a specified time or event.

Last updated