Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Access TimelineAsset framerate from script

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

  1. barbelot

    barbelot

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

    barbelot

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