added broken animation file link |
m fix types |
||
Line 4: | Line 4: | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
{"Name":"*", "Type":" | {"Name":"*", "Type":"AsyncCall"}, | ||
{"Name":"To", "Type":"Dummy"}, | {"Name":"To", "Type":"Dummy"}, | ||
{"Name":"From", "Type":"Dummy"}, | {"Name":"From", "Type":"Dummy"}, | ||
Line 10: | Line 10: | ||
{"Name":"Curve", "Type":"CurvePreset"}, | {"Name":"Curve", "Type":"CurvePreset"}, | ||
{"Name":"ProportionalDuration", "Type":"bool"}, | {"Name":"ProportionalDuration", "Type":"bool"}, | ||
{"Name":"Target", "Type":"IField"} | {"Name":"Target", "Type":"IField`1"} | ||
] | ] | ||
|Outputs= | |Outputs= | ||
[ | [ | ||
{"Name":"OnStarted", "Type":" | {"Name":"OnStarted", "Type":"AsyncResumption"}, | ||
{"Name":"OnDone", "Type":"Continuation"} | {"Name":"OnDone", "Type":"Continuation"} | ||
] | ] |
Revision as of 19:13, 9 February 2024
Tween Value is a node that allows you to change a Target (Numeric or Enum IField`1) over a Duration (float) from a starting point to an ending point. The different curve presets determine the interpolation used, and when applicable will smoothly change using non whole numbers.
Inputs
* (Async Call)
Tells the node to start tweening Target (Numeric or Enum IField`1).
To (Sudo-Generic (Any Numeric or Enum value))
The value to tween towards over Duration (float)
Examples: Key Enum, Float, Int, etc
From (Sudo-Generic (Any Numeric or Enum value))
The value to tween away from over Duration (float)
Examples: Key Enum, Float, Int, etc
Duration (float)
The duration in seconds that the value should tween for.
Curve (CurvePreset)
The interpolation type to use while tweening.
ProportionalDuration (Boolean)
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
TODO: What does this do?
Target (Numeric or Enum IField`1)
The value this node should Tween.
Outputs
OnStarted (Async Impulse)
sends an Async Impulse once the node starts tweening the Target (Numeric or Enum IField`1).
OnDone (Impulse)
Sends an Impulse once the node is done tweening Target (Numeric or Enum IField`1).
Examples
-
A short animation of a tween value moving something over time, with nodes beside it.