Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question A scripted object (probably UnityEngine.Timeline.ControlTrack?) has a different serialization layout

Discussion in 'Timeline' started by Januaryz, Oct 11, 2021.

  1. Januaryz

    Januaryz

    Joined:
    Apr 18, 2015
    Posts:
    4
    unity version: 2020.3.8f1
    platform: iOS

    We pack Timeline into AssetBundle and load it during game. However, some Timelines are not played, and errors are reported through the log:

    Has anyone encountered the same problem and how can this be solved?
     
  2. shaojingliu

    shaojingliu

    Joined:
    Mar 20, 2020
    Posts:
    6
    build by il2cpp mode, add "Assets/link.xml" file, content:

    <linker>
    <assembly fullname="Unity.Timeline">
    <namespace fullname="UnityEngine.Timeline" preserve="all" />
    </assembly>
    </linker>
     
    Last edited: May 17, 2022
    josefgrunig and tsukimi like this.
  3. y-iwanaga

    y-iwanaga

    Joined:
    Jul 2, 2021
    Posts:
    23
    I encountered a similar issue with Unity2022.3.16f1.
    And I was able to solve the issue using the workaround shown by shaojinglui-san.
    Thank you.
     
  4. josefgrunig

    josefgrunig

    Joined:
    Jan 23, 2017
    Posts:
    69
    Same here on Unity 2022.3.16f1 with following errors:

    The referenced script (UnityEngine.Timeline.AudioTrack) on this Behaviour is missing!
    and
    A scripted object (probably UnityEngine.Timeline.AudioTrack?) has a different serialization layout when loading. (Read 44 bytes but expected 752 bytes)
    Fixed using the suggestion by @shaojingliu