Hemisputnik (talk | contribs) mNo edit summary |
add info |
||
Line 4: | Line 4: | ||
|Name=Local Variable Sync`1 | |Name=Local Variable Sync`1 | ||
}} | }} | ||
The '''LocalVariableSync''' component is used to store a value to the local dB for the user space and load it up again. | |||
== | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|OwnerUser|{{RootFieldType|UserRef}}|TypeAdv0=true| | |OwnerUser|{{RootFieldType|UserRef}}|TypeAdv0=true| The user that this variable is associated with in the world. | ||
|Value|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<T>}}|TypeAdv1=true| | |Value|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<T>}}|TypeAdv1=true| The value to Sync with the local DB variable. | ||
|Variable|String| | |Variable|String| The name of the local DB variable. | ||
}} | }} | ||
== | == Usage == | ||
{{stub}} | |||
== Examples == | == Examples == | ||
Line 22: | Line 23: | ||
[[Category:Components{{#translation:}}|Local Variable Sync`1]] | [[Category:Components{{#translation:}}|Local Variable Sync`1]] | ||
[[Category:Generic Components{{#translation:}}|Local Variable Sync`1]] | [[Category:Generic Components{{#translation:}}|Local Variable Sync`1]] | ||
Latest revision as of 16:37, 18 June 2025
Component image File:LocalVariableSync`1Component.pngLocal Variable Sync`1 component as seen in the Scene Inspector
The LocalVariableSync component is used to store a value to the local dB for the user space and load it up again.
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. |
OwnerUser
|
direct UserRef | The user that this variable is associated with in the world. |
Value
|
direct RelayRef`1<IField`1<T>> | The value to Sync with the local DB variable. |
Variable
|
String | The name of the local DB variable. |
Usage
This article or section is a Stub. You can help the Resonite Wiki by expanding it.