docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Delta Time

    Menu Path : Operator > BuiltIn > DeltaTime

    The Delta Time Operator outputs the time (in seconds) between the current and previous frame scaled by VisualEffect.playRate. The value this Operator outputs can be no greater than the value set for VFXManager.maxDeltaTime.

    In the Visual Effect Graph Asset, if you set Update Mode to Fixed Delta Time, the base value this Operator scales by VisualEffect.playRate is a multiple of VFXManager.fixedTimeStep. The multiple is between 0 and the maximum iteration count, which Unity calculates from VFXManager.maxDeltaTime and VFXManager.fixedTimeStep.

    Overall, Unity produces the output value as follows :

    deltaTime = max(VisualEffectAsset.fixedDeltaTime ? n * VFXManager.fixedTimeStep : Time.deltaTime, VFXManager.maxDeltaTime) * VisualEffect.playRate;

    Where n is a positive integer (including zero).

    Operator properties

    Output Type Description
    deltaTime Float The visual effect's deltaTime no greater than VFXManager.maxDeltaTime. If the Visual Effect Graph Asset's Update Mode is set to Fixed Delta Time, this value is a multiple of VFXManager.fixedTimeStep.
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)