docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TimelineAsset.EditorSettings

    Properties of the timeline that are used by the editor

    Inheritance
    object
    TimelineAsset.EditorSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Timeline
    Assembly: Unity.Timeline.dll
    Syntax
    [Serializable]
    public class TimelineAsset.EditorSettings

    Properties

    fps

    The frames per second used for snapping and time ruler display

    Declaration
    [Obsolete("EditorSettings.fps has been deprecated. Use editorSettings.frameRate instead.", false)]
    public float fps { get; set; }
    Property Value
    Type Description
    float

    frameRate

    The frames per second used for framelocked preview, frame snapping and time ruler display,

    Declaration
    public double frameRate { get; set; }
    Property Value
    Type Description
    double
    Remarks

    If frameRate is set to a non-standard custom frame rate, Timeline playback may give incorrect results when playbackLockedToFrame is true.

    See Also
    TimelineAsset

    scenePreview

    Set to false to ignore scene preview when this timeline is played by the Timeline window.

    Declaration
    public bool scenePreview { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    When set to false, this setting will

    • Disable scene preview when this timeline is played by the Timeline window.
    • Disable recording for all recordable tracks.
    • Disable play range in the Timeline window.
    • Stop() is not called on the PlayableDirector when switching between different TimelineAssets in the TimelineWindow.

    scenePreview will only be applied if the asset is the master timeline.

    See Also
    TimelineAsset

    Methods

    SetStandardFrameRate(StandardFrameRates)

    Sets the EditorSetting frameRate to one of the provided standard frame rates.

    Declaration
    public void SetStandardFrameRate(StandardFrameRates enumValue)
    Parameters
    Type Name Description
    StandardFrameRates enumValue

    StandardFrameRates value, used to set the current EditorSettings frameRate value.

    Remarks

    When specifying drop frame values, it is recommended to select one of the provided standard frame rates. Specifying a non-standard custom frame rate may give incorrect results when playbackLockedToFrame is enabled during Timeline playback.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when the enumValue is not a valid member of StandardFrameRates.

    See Also
    TimelineAsset
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)