Component:TimeIntDriver: Difference between revisions

From Resonite Wiki
m Fixed a link
m →‎Usage: typo
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages></languages>
<languages></languages>
<translate>
<translate>
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=TimeIntDriverComponent.png
|Image=TimeIntDriverComponent.png
|Name=TimeIntDriver
|Name=TimeIntDriver
}}
}}
== Intoduction ==
The '''TimeIntDriver''' Component drives the [[Type:Int|Int]] value specified in <code>Target</code> based on the current time, modified by the specified parameters.
The '''TimeIntDriver''' Component drives the [[Type:Int|Int]] value specified in <code>Target</code> based on the current time, modified by the specified parameters.


Line 16: Line 14:
|Target|{{RootFieldType|FieldDrive`1|[[Type:Int|Int]]}}|TypeAdv3=true| The value to be driven.
|Target|{{RootFieldType|FieldDrive`1|[[Type:Int|Int]]}}|TypeAdv3=true| The value to be driven.
}}
}}
== Behavior ==
 
== Usage ==
Can be used with [[Component:UVAtlasAnimator]] to constantly drive the animation of a material.
 
== Examples ==
== Examples ==
* [https://www.youtube.com/watch?v=Nbnx23oGtXo TimeIntDriver for Integer Animations] by [[User:ProbablePrime|ProbablePrime]]
* [https://www.youtube.com/watch?v=Nbnx23oGtXo TimeIntDriver for Integer Animations] by [[User:ProbablePrime|ProbablePrime]]


== Related Components ==
== Related Components ==
* [[Component:AtlasInfo]]
* [[Component:TimeIntDriver]]
* [[Component:UVAtlasAnimator]]
</translate>
</translate>
[[Category:Components{{#translation:}}|Time Int Driver]]
[[Category:Components{{#translation:}}|Time Int Driver]]
[[Category:Components:Transform:Drivers{{#translation:}}|Time Int Driver]]
[[Category:Components:Transform:Drivers{{#translation:}}|Time Int Driver]]

Latest revision as of 18:43, 11 November 2024

Component image 
TimeIntDriver component as seen in the Scene Inspector

The TimeIntDriver Component drives the Int value specified in Target based on the current time, modified by the specified parameters.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
Scale Float Time scale in relation to time in seconds, where 1.0 means Target will increment once per second.
Repeat Int Once Target reaches this value, it will reset to 0 and restart.
PingPong Bool Causes Target to reverse direction when it reaches 0 or the value in Repeat, instead of restarting.
Target field drive of Int The value to be driven.

Usage

Can be used with Component:UVAtlasAnimator to constantly drive the animation of a material.

Examples

Related Components