Automated: create new component page |
add link |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox Component | {{Infobox Component | ||
|Image=ConstantLerpValue`1Component.png | |Image=ConstantLerpValue`1Component.png | ||
|Name=Constant Lerp Value | |Name=Constant Lerp Value | ||
}} | }} | ||
The '''ConstantLerpValue''' component will make the <code>Value</code> reach <code>TargetValue</code>, making <code>Speed</code> progress per second. | |||
== | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|TargetValue|'''T'''|TypeAdv0=true| | |TargetValue|'''T'''|TypeAdv0=true| The value to stop at. | ||
|Speed|Float| | |Speed|Float| The amount to change <code>Value</code> by per second to reach <code>TargetValue</code> | ||
|WriteBack|Bool| | |WriteBack|Bool| Whether changes to <code>Value</code> will be written to <code>TargetValue</code>. See [[Drives#Write Backs|write backs]]. | ||
|Value|{{RootFieldType|FieldDrive`1|T}}|TypeAdv3=true| | |Value|{{RootFieldType|FieldDrive`1|T}}|TypeAdv3=true| The value to constantly progress towards <code>TargetValue</code> | ||
}} | }} | ||
== | == Usage == | ||
== Examples == | == Examples == | ||
Line 22: | Line 22: | ||
[[Category:Components{{#translation:}}|Constant Lerp Value`1]] | [[Category:Components{{#translation:}}|Constant Lerp Value`1]] | ||
[[Category:Generic Components{{#translation:}}|Constant Lerp Value`1]] | [[Category:Generic Components{{#translation:}}|Constant Lerp Value`1]] | ||
Latest revision as of 18:28, 17 February 2025
Component image 
Constant Lerp Value component as seen in the Scene Inspector

The ConstantLerpValue component will make the Value
reach TargetValue
, making Speed
progress per second.
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. Some components stop their functionality when this field is disabled, but some don't. |
TargetValue
|
T | The value to stop at. |
Speed
|
Float | The amount to change Value by per second to reach TargetValue
|
WriteBack
|
Bool | Whether changes to Value will be written to TargetValue . See write backs.
|
Value
|
field drive of T | The value to constantly progress towards TargetValue
|