Class TimelineAsset.EditorSettings
Properties of the timeline that are used by the editor
Inherited Members
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
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 thePlayableDirector
when switching between differentTimelineAsset
s in the TimelineWindow.
scenePreview
will only be applied if the asset is the master timeline.
See Also
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. |