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);

Last updated