Initializing the SDK
Last updated
Last updated
Below are the instructions & code snippets to initialize the SDK within a Unity project.
The “MotionmixManager” prefab will be added to the first scene by the MotionMix setup wizard. If it is not present already, add it to the to the entry/first scene of your project
To record a scene gameobject like a building, add a “MotionmixMeshTransform” to the 3D scene object (All meshes in the child gameobjects will be automatically recorded)
Set the “Object Tag” field in “MotionmixMeshTransform” component to Floor. Please note: If there is no mesh transform with at least one Floor tag, then session recording will fail
To capture a player's positional data, add a “MotionMixTransform” to the player object with "Object Tag" field set to "Player". If the player is not a dynamic object (i.e. the object is preloaded in the scene), “Record On Launch” should be selected.
You can override the record time interval and set it to 1 second for the player for more granular recording