Search Unity

Timeline serialization and sending through TCP

Discussion in 'Timeline' started by Kszyhu, Apr 6, 2019.

  1. Kszyhu

    Kszyhu

    Joined:
    Sep 8, 2016
    Posts:
    8
    Hello!
    In my app I am creating a timeline dynamically from code, using some UI buttons, which add animations to it. What I need is to send this timeline (PlayableAsset possibly) over TCP to an Android device to play it later. I cannot find any docs on Timeline serialization, so how would this be done, if possible?
    Thanks in advance!
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    This isn't something I've tried, but I don't see why it wouldn't work. If you can serialize gameobjects, then in theory you should be able to serialize a timeline.

    The challenge is timeline uses many subassets. Timelines, TrackAsset, Markers/Signals, and the PlayableAssets on the clips are all individual ScriptableObjects. So, all of those assets would need to be included in the serialization.