Unity Game Engine Tutorial
Shadow includes support to live stream and import animation into Unity® software. Preview in the Unity editor, live stream into the Unity game engine, and import mocap animation for in game use. This tutorial outlines the Unity assets included with all of our Shadow motion capture systems.
To live stream Shadow animation into Unity you need our skeleton model and a script based controller. We provide a package that includes all of the assets you need to get started.
Drag a copy of our Shadow model into your scene. This includes our standard skeleton and a mesh for preview.
Select the Shadow object in the scene to enable live streaming. Once the object is selected press the Add Component button at the bottom of the Inspector panel. Choose Scripts > Motion > Shadow Behaviour from the drop down menu.
Shadow Behaviour is a Unity script component that controls the position and rotation of objects in the scene. Once the component is added to the Shadow object motion capture streaming is enabled.
Press the play button to live stream Shadow animation data into the scene. The realtime preview works in both the editor scene view and the game engine.
Note: The Shadow mocap system must already be connected and streaming data to your computer to see the animation update in Unity.
You can also import Shadow takes into Unity as animation clip assets. The Shadow system exports FBX files that are compatible with Unity.
To import a Shadow take, simply run the Assets > Import New Asset... command. Browse to the Motion Data Folder for a list of recorded animations in FBX format.
We have some sample FBX animations available for download to help get you started.
Select the take asset to view the animation in the AnimationStack in the lower right corner of the Unity editor. This animation is now available for use as an in game clip.
Note: The Shadow object for live streaming is completely separate from the imported take animation. The Shadow preview object has returned to its rest T-pose since the scene is stopped. Press play to enable live streaming again.
Motion Workshop is a Unity Asset Store Publisher.
Unity and the Unity logo are a registered trademarks of Unity Technologies, used with permission. Motion Workshop is not affiliated with, endorsed by, sponsored by, or supported by Unity Technologies.