---
tags:
    - "Time"
    - "Clock"
    - "Tick"
    - "Physics"
---

# Fixed Delta Time

[Time](index.md) / **Fixed Delta Time**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

The time between physics (Fixed Update) frames in seconds

## Code

```cs
using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Fixed Delta Time")]
    [Category("Time/Fixed Delta Time")]
    [Description("The time between physics (Fixed Update) frames in seconds")]
    
    [Image(typeof(IconTimer), ColorTheme.Type.Blue, typeof(BadgePhysics))]
    [Keywords("Time", "Clock", "Tick", "Physics")]
    
    [Serializable]
    public class TypeNumberTimeFixedDeltaTime : TypeNumber
    {
        public override double GetPreview(GameObject source) => Time.fixedDeltaTime;

        public override double Get(Args args)
        {
            return Time.fixedDeltaTime;
        }
        
        public override string ToString()
        {
            return "Fixed Delta Time";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnFixedUpdate;
    }
}
```

