Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

FPS from PlayableBehavior

Discussion in 'Timeline' started by Solovykh, Oct 19, 2017.

  1. Solovykh

    Solovykh

    Joined:
    Aug 28, 2017
    Posts:
    59
    Is it possible to get the FPS of the Timeline the custom playable is playing on from a PlayableBehavior?
     
  2. Solovykh

    Solovykh

    Joined:
    Aug 28, 2017
    Posts:
    59
    Figured it out, you can set it from the playable !
    Code (CSharp):
    1. PlayableDirector director = playable.GetGraph().GetResolver() as PlayableDirector;
    2. TimelineAsset timelineAsset = director.playableAsset as TimelineAsset;
    3. float fps = timelineAsset.editorSettings.fps;