🔬
SDK Documentation
  • Welcome to MotionMix Docs
  • Overview
    • What we do
    • Our Features
  • SDK Guide
    • Getting Started
    • Importing the SDK
    • Setting up Project Dependencies
  • Basic Usage
    • Setup Wizard
      • App Configuration
      • Player Setup
      • Recording prefabs
  • Advanced Usage
    • Configuration Options
    • Initializing the SDK
    • Basic Functions and Features
    • Starting a session recording
    • Multiplayer Recording
    • Viewing Recorded Sessions
    • Recording Prefab/Mesh
    • Error Handling
    • Best Practices
    • UI Recording
  • More Options
    • Sample Code
    • API Reference
    • FAQ
    • Troubleshooting
      • Common Issues and Solutions
      • Debugging and Logging
    • Release Notes
    • Support and Contact
    • Legal and Licensing
Powered by GitBook
On this page
  1. Advanced Usage

Starting a session recording

PreviousBasic Functions and FeaturesNextMultiplayer Recording

Last updated 8 months ago

MotionMix considers every user's journey in single player mode as a single session from when the app starts.

  • Set the current local player's ID in MotionMix using

MotionMixManager.SetPlayerId(string playerID);

Single Player Session

  • MotionMix will start a single player session by default as soon as the application starts

  • If you require manual control over when to start session, you can enable "Record Manually" in the MotionMixManager prefab in the first scene

  • You can start session from code as shown in the snippet below

MotionMixManager.StartSession();

Parameters:

SessionType - Single player / Multiplayer Role - Host/Server/Client