Search Unity

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:
    62
    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