Forum Discussion
MeshCreator
Jan 30, 2025Copper Contributor
Controlling timeline using Unity Playable Controller not working properly
Unity version: 2022.3.34
Mesh toolkit version: v5.2314.130
Hello, as the title says I would like to control a Unity timeline using the Unity Playable Controller from Mesh. However, after adding the component and linking up the playable director as instructed in the doc and doing a test event, the controller doesn't seem to work. The animation doesn't pause when the pause button is pressed, and when I resume the animation snaps back to the point in the animation where it should have paused.
For example;
A cube moves from point A to point B in the animation. I want to pause the animation (stop the cube from moving at its current position) when the cube has covered 50% of the distance by pressing the pause button, but the cube continues moving towards point B when doing so. When the cube has moved 75% of the distance, I press resume in the controller, and the cube snaps back to the halfway mark between the points and then continues.
Is there a setting I have missed or anything else that might be causing this?
- orrenravid
Microsoft
Hello, sorry to hear you are facing issues with the Playable Controllable script. First, could you confirm that your configuration for the PlayableDirector has Play on Awake set to false and that you have the wrap mode set to Hold:
- MeshCreatorCopper Contributor
Hello,
Yes I have unchecked the Play on Awake. I tried with different wrap modes as well, but that doesn't seem to be it.My timeline only contains activation and animation tracks, if that is of any use, and everything works as it should when I manually pause the timeline in the Unity editor during play mode. I have also done a simple test scene with a very simple animation and timeline, in case there was something with the timeline in my main project, but the same thing happened there. The issue only happens when I control the timeline via the control panel in Mesh.
Thanks for your help- orrenravid
Microsoft
Nothing from what you described seems to be incorrect. Are there any screenshots of your configuration and videos you can provide? I have tested a simple timeline on my end with the playable configured as described and I have not noticed any direct regression on our side.
- CameronMicka
Microsoft
Let me reach out to the owners of this feature to see if they have suggestions. Thanks for reporting!