Fixed Unscaled Delta Time#
Time / Fixed Unscaled Delta Time
Can Read
Cannot Write
Description#
The interval in seconds of time scale independent at which fixed updates run
Code#
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Get]
[Title("Fixed Unscaled Delta Time")]
[Category("Time/Fixed Unscaled Delta Time")]
[Description("The interval in seconds of time scale independent at which fixed updates run")]
[Image(typeof(IconTimer), ColorTheme.Type.Blue, typeof(BadgePhysics))]
[Keywords("Time", "Clock", "Tick", "Physics")]
[Serializable]
public class TypeNumberTimeFixedUnscaledDeltaTime : TypeNumber
{
public override double GetPreview(GameObject source) => Time.fixedUnscaledDeltaTime;
public override double Get(Args args)
{
return Time.fixedUnscaledDeltaTime;
}
public override string ToString()
{
return "Fixed Unscaled Delta Time";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnFixedUpdate;
}
}