Search Unity

Access TimelineAsset framerate from script

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

  1. barbelot

    barbelot

    Joined:
    Jul 18, 2017
    Posts:
    38
    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:
    1,516
    You can access it using the TimelineAsset.editorSettings.fps property.
     
    bab202 and zklinger_unity like this.
  3. barbelot

    barbelot

    Joined:
    Jul 18, 2017
    Posts:
    38
    Thanks a lot !
     
    bab202 likes this.