🔬
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. More Options

Sample Code

Include code examples for common use cases to help developers understand how to use the SDK effectively.

Start single player session recording
MotionMixManager.StartSession();
Start multiplayer session
MotionMixManager.StartMultiplayerSession(string RoomName);
Set Player ID
MotionMixManager.SetPlayerID(string playerID);
Scene recording for dynamic scenes (downloaded from the server and loaded at runtime)
MotionMixManager.RecordFloor(meshObject);
// meshObject - Game Object with all scene/environment meshes, which
// are static and non-interactable
Mesh Recording

This applies to all the meshes other than the scene mesh recorded in the previous step

MotionMixManager.RecordMesh(meshObject);
// meshObject - Game Object with mesh filter components in any of the
// children including itself
Player Recording

This applies for dynamically loaded players in a multiplayer scenario

MotionMixManager.RecordPlayer(playerObject);
PreviousUI RecordingNextAPI Reference

Last updated 8 months ago