Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Timeline not playing in build (Android) from other machine

Discussion in 'Timeline' started by Tehenauin, Jun 25, 2021.

  1. Tehenauin

    Tehenauin

    Joined:
    Oct 18, 2018
    Posts:
    43
    Hello everyone!

    I have the following problem:

    I made a playable director that plays a timeline asset and it works fine in the editor and even if I build it locally on my machine (Android APK). It also works in the editor when a teammate checks out my git branch. But as soon as it is built from another machine (teammate's or Unity Cloud Build) the Timeline doesn't play.
    I may have to add, that the playable director and the timeline asset are part of an Asset Bundle, that gets loaded on runtime.

    I am not even sure, if this is Timeline related, but maybe one of you can help.

    Edit: We also tested it for IOS and the issue persists.
     
    Last edited: Jun 25, 2021
  2. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    This is a common issue.
    Components that are never referenced in a scene in the main executable get stripped by code stripping.
    The simplest fix is to put a dummy PlayableDirector in your boot scene
     
    Tehenauin likes this.
  3. Tehenauin

    Tehenauin

    Joined:
    Oct 18, 2018
    Posts:
    43
    Thank you for the reply! Your suggestion works! But it only seems to work, if the Playable director also references a PlayableAsset.