docs.unity3d.com
    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
    • Operator properties
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023