Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Runtime creation and editing of Timeline, Activation Tracks and Notifications.

Discussion in 'Timeline' started by EmeralLotus, Sep 27, 2022.

  1. EmeralLotus

    EmeralLotus

    Joined:
    Aug 10, 2012
    Posts:
    1,457
    Fellow Timeline Komrades,

    Unity Timeline is super awesome and very convenient in the editor. I have the following use case:

    1. Create timeline in unity's editor, during runtime, be able to edit activation timing for various tracks using scripting.
    2. Create timeline, tracks and nofifications in runtime.

    Is any of the above possible during runtime? Or what is possible at runtime besides being to playback the timeline.

    Cheers
     
  2. fleity

    fleity

    Joined:
    Oct 13, 2015
    Posts:
    302
    What do you mean by "in unity's editor" exactly?

    Do you want the timeline editor window to be used in a built-version of the game?
    That will be very hard to do because these parts of the editor can not be compiled into the game. But you could build your own UI and basically call all the necessary functions to create and modify timelines I guess, which is a lot to do if you need all the features.
     
  3. EmeralLotus

    EmeralLotus

    Joined:
    Aug 10, 2012
    Posts:
    1,457
    If I create my own UI would it be possible to create and modify the timeline?
     
  4. fleity

    fleity

    Joined:
    Oct 13, 2015
    Posts:
    302
    98% sure yes, judging from a very quick look the api needed is not in an editor namespace therefore is should be possible.