Search Unity

Timeline "Track cannot be loaded" only Assetbundle Mobile platforms

Discussion in 'Asset Bundles' started by egoquat, Jun 7, 2021.

  1. egoquat

    egoquat

    Joined:
    Jul 4, 2012
    Posts:
    93
    The issue of mine is very similar with this track.(https://forum.unity.com/threads/track-cannot-be-loaded.738869/)
    Timeline "Track cannot be loaded" only Assetbundle with Mobile platforms.
    This "Not working Timeline track issues" only occurs Assetbundle Mobile platforms, on PC working well.
    Pseudo simple process
    1. Define customize timeline tracks to specific Timeline Asset by overrides HomeActionEventPlayable.
    Timeline has 10-20 tracks. Customized track is one of them.
    ex) Customize track override pseudo
    public class TimelineAAA : HomeActionEventPlayable
    {...
    2. Build an Assetbundle with Timeline assets and build android apk.
    3. Execute apk and download Assetbundle and then simply load with instantiate Timeline asset on the World
    4. Popped-out the message "The referenced script on this Behaviour (Game Object '<null>') is missing!"
    and then customized track is not working.
    Environment : Unity 2019.4.20f1 / Android / iOS
    Any solutions for this problem or suggestions thankful.
     
    Last edited: Jun 7, 2021
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736
    Most common reason for such problems is unused code stripping. Try building Android mono player and see if it works.
    The solution is to have a dummy scene in the game that uses the features to prevent them from being stripped.
     
    egoquat likes this.