Reply To: "Per Second" checkbox

Forums 💬 NodeCanvas ⚙️ Support "Per Second" checkbox Reply To: "Per Second" checkbox

#17722
Gavalakis
Keymaster

    Hey,

    The “Per Second” option is really only relevant when you have set the Operation in anything other than “Set”, so like for example “Add”, or “Subtract”.
    If “Per Second” option is enabled, then ValueB is multiplied by Time.deltaTime, before “Added”, “Subtracted” or otherwise to ValueA.
    You essentially can enabled “Per Second” if you for example want to increase (Add to) ValueA, by ValueB per second, while without “Per Second” enabled, the operation will take place per frame.

    For your convenience, here is the Unity documentation for Time.deltaTime, which I think will also help you understand this concept better 🙂 :
    https://docs.unity3d.com/ScriptReference/Time-deltaTime.html

    Please let me know if you need more clarification on the above.
    Thanks!