Class TimelinePreferences
Store the editor preferences for Timeline.
Inheritance
Inherited Members
Namespace: Global Namespace
Assembly: Unity.Timeline.Editor.dll
Syntax
[FilePath("TimelinePreferences.asset", FilePathAttribute.Location.PreferencesFolder)]
public class TimelinePreferences : ScriptableSingleton<TimelinePreferences>
Fields
edgeSnap
Enable the ability to snap clips on the edge of another clip.
Declaration
[SerializeField]
public bool edgeSnap
Field Value
Type | Description |
---|---|
bool |
playbackScrollMode
Behavior of the timeline window during playback.
Declaration
[SerializeField]
public PlaybackScrollMode playbackScrollMode
Field Value
Type | Description |
---|---|
Playback |
showAudioWaveform
Draw the waveforms for all audio clips.
Declaration
[SerializeField]
public bool showAudioWaveform
Field Value
Type | Description |
---|---|
bool |
snapToFrame
Enable Snap to Frame to manipulate clips and align them on frames.
Declaration
[SerializeField]
public bool snapToFrame
Field Value
Type | Description |
---|---|
bool |
timeFormat
The time unit used by the Timeline Editor when displaying time values.
Declaration
[SerializeField]
public TimeFormat timeFormat
Field Value
Type | Description |
---|---|
Time |
timeUnitInFrame
Define the time unit for the timeline window. true : frame unit. false : timecode unit.
Declaration
[NonSerialized]
[Obsolete("timeUnitInFrame is deprecated. Use timeFormat instead", false)]
public bool timeUnitInFrame
Field Value
Type | Description |
---|---|
bool |
Properties
audioScrubbing
Enables audio scrubbing when moving the playhead.
Declaration
public bool audioScrubbing { get; set; }
Property Value
Type | Description |
---|---|
bool |
playbackLockedToFrame
Enable Timelines to be evaluated on frame during editor preview.
Declaration
public bool playbackLockedToFrame { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
Save()
Save the timeline preferences settings file.
Declaration
public void Save()