diff --git a/Source/Editor/GUI/Timeline/Media.cs b/Source/Editor/GUI/Timeline/Media.cs
index 5b70312af..7a958c220 100644
--- a/Source/Editor/GUI/Timeline/Media.cs
+++ b/Source/Editor/GUI/Timeline/Media.cs
@@ -35,15 +35,25 @@ namespace FlaxEditor.GUI.Timeline
public TMedia Media;
///
- /// Gets or sets the start frame of the media event.
+ /// Gets or sets the start frame of the media event (in frames).
///
- [EditorDisplay("General"), EditorOrder(-10010), Tooltip("Start frame of the media event.")]
+ [EditorDisplay("General"), EditorOrder(-10010), VisibleIf(nameof(UseFrames)), Tooltip("Start frame of the media event (in frames).")]
public int StartFrame
{
get => Media.StartFrame;
set => Media.StartFrame = value;
}
+ ///
+ /// Gets or sets the start frame of the media event (in seconds).
+ ///
+ [EditorDisplay("General"), EditorOrder(-10010), VisibleIf(nameof(UseFrames), true), Tooltip("Start frame of the media event (in seconds).")]
+ public float Start
+ {
+ get => Media.Start;
+ set => Media.Start = value;
+ }
+
///
/// Gets or sets the total duration of the media event (in frames).
///
@@ -146,13 +156,17 @@ namespace FlaxEditor.GUI.Timeline
public event Action DurationFramesChanged;
///
- /// Gets the media start time in seconds.
+ /// Get or sets the media start time in seconds.
///
///
- public float Start => _startFrame / _timeline.FramesPerSecond;
+ public float Start
+ {
+ get => _startFrame / _timeline.FramesPerSecond;
+ set => StartFrame = (int)(value * _timeline.FramesPerSecond);
+ }
///
- /// Get the media duration in seconds.
+ /// Get or sets the media duration in seconds.
///
///
public float Duration