Search Unity

Access TimelineAsset framerate from script

Discussion in 'Timeline' started by barbelot, Dec 15, 2017.

  1. barbelot

    barbelot

    Joined:
    Jul 18, 2017
    Posts:
    12
    Hello,

    Is there any way to access a timeline framerate from script ?
    You can change it in the timeline editor or in the timelineAsset inspector but I didn't find any way to access it from script in the API manual.

    Thanks in advance !
     
    Last edited: Dec 15, 2017
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    919
    You can access it using the TimelineAsset.editorSettings.fps property.
     
    zklinger_unity likes this.
  3. barbelot

    barbelot

    Joined:
    Jul 18, 2017
    Posts:
    12
    Thanks a lot !