Multi-room sync (animations, timelines and video)
Overview
You can add various Event features to your Environment that can be controlled during an Event. Events in Mesh can create powerful interactive experiences for hosting all-hands meetings, social gatherings, showcases, or trainings. After you've uploaded your finished custom Environment to Mesh, an organizer can use your Environment to create an Event.
Playables
Playables are objects that are meant to be played, paused, looped, and stopped; example Playables include animations, Unity-based Timeline elements and Unity Video Players. When you include Playables in your Environment, they appear in the Mesh app's Event Control Panel where they can be turned on or off.
To learn more about the Unity Playables API, see Unity - Manual: Playables API (unity3d.com).
Controllables
The Mesh Toolkit includes key components that integrate into the Mesh event production system - these components are called Controllables.
To locate the scripts: In the Project window, navigate to Packages > Microsoft Mesh Toolkit mesh.toolkit.sharedcontent > Controllables.
The components include:
EmbeddedAudioControllable: For controlling Unity AudioSources with hard-coded/embedded audio clips
EmbededVideoControllable: For controlling hard-coded video
ObjectControllable: For marking GameObjects that can be enabled/disabled via the control panels
StreamedVideoControllable: For playing online videos
UnityPlayableControllable: For controlling a PlayableDirector
Controlling an Animation in an Event
As an organizer in an Event, you can select play to start your animation, pause it, and select play again to resume the animation. You can also select stop to reset the animation to the beginning or set your animation to loop.

For example, if you have a door-opening animation, selecting the play button will open the door in your scene. Selecting stop will reset the animation back to its original position. A Playable will not animate in reverse; to do this, you'll need to create a different animation.
For more information, see Prepare content with the Control Panel.
Animate Timelines in Unity for Mesh
If you're unfamiliar with how Timelines work in Unity, we recommend that you watch this Unity Tutorial series on using Timelines
To create a Timeline for Mesh
In the Hierarchy, add an empty GameObject and then rename it "Timelines."
Add another empty GameObject, make it a child to Timelines, and then rename it "Timeline1."

Notes:
We suggest that you give this GameObject a more descriptive name---for example, 1_Entrance_Doors. For this scenario, we'll stick with the name "Timeline1."
If you have a door-opening animation, selecting the Play button will open the door in your scene. Selecting the Stop button will reset the animation back to its original position. A Playable will not animate in reverse; to do this, you'll need to create a different animation.
IMPORTANT: Multiple timelines on a single GameObject will not work and will cause issues in events.
In the Project tab, navigate to the Assets folder and then create a new folder named Animations.
In the Hierarchy, select Timeline1, and then select Window Sequencing >Timeline.
We recommend that you move the Timeline tab next to the Project and Console tabs. This allows you to view the Timeline and the Scene or Game windows simultaneously.

Select Create.

In the Save window, change the name of the Playable to Open_Doors and then save it to the Assets Animations folder**. **

You can now animate or customize your Timeline---for example, add animation clips, activation clips, and more. For more on how to do this, watch this tutorial series:
A Timeline with several tracks might look something like this:

Once you're done animating, in the Hierarchy, select the Timeline1 GameObject, and then in the Inspector, navigate to the Playable Director component.
In most cases you'll want to choose these settings:
Play On Awake = not selected
The timeline will be active when you upload it.
Wrap Mode = Hold
The last frame of your animation will be on hold indefinitely; otherwise, your timeline will reset to the start. There's also a Wrap Mode option named Loop which you may want to use in some instances.

Now you can upload your environment to Mesh using the Mesh Toolkit Uploader and then see how it looks in your Mesh space. To learn more, see Prepare content with the Control Panel.
Unity Video Players
Video playback for the Control Panel can be done using the Unity Video Player. You'll first need to embed a video player in your Unity scene. Once added, it will appear as an option in your Control Panel content list and can be added to your Control Panel using the + button. You can then toggle it on/off or adjust playback controls. Learn more about how to use the Control Panel in Prepare content with the Control Panel.
To learn more about the Unity Video Player component, see Unity - Manual: Video Player component (unity3d.com).
Save your work as a template
If you create an Environment + Event features combination that you think organizers may want to repeat in the future, you can save the combination as a template. To learn more about templates, see Create event template.
Feedback
Submit and view feedback for