add type page |
add picture |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox Component | |||
|Image=UserRef.png | |||
|Name=UserRef | |||
}} | |||
User Ref is a nested type usually used to auto fill <code>User</code> [[Type:User|User]] variable when a user rejoins a session with this reference. This works better than a direct [[Type:User|User]] reference, since the user that was referenced by the component can be identified later. The host instantly deletes the [[Type:User|User]] object when a user leaves. making this type for getting a user more worth while for things like overrides and flux. | User Ref is a nested type usually used to auto fill <code>User</code> [[Type:User|User]] variable when a user rejoins a session with this reference. This works better than a direct [[Type:User|User]] reference, since the user that was referenced by the component can be identified later. The host instantly deletes the [[Type:User|User]] object when a user leaves. making this type for getting a user more worth while for things like overrides and flux. | ||
This currently isn't a component you can attach, but it is part of a [[ProtoFlux:Data Model Store|Data Model Store<User>]], so using such flux node will allow persistent user identification. | |||
== Component == | == Component == |
Latest revision as of 16:56, 19 October 2024
Component image
User Ref is a nested type usually used to auto fill User
User variable when a user rejoins a session with this reference. This works better than a direct User reference, since the user that was referenced by the component can be identified later. The host instantly deletes the User object when a user leaves. making this type for getting a user more worth while for things like overrides and flux.
This currently isn't a component you can attach, but it is part of a Data Model Store<User>, so using such flux node will allow persistent user identification.
Component
This is what the type has visible while in a component context.
Name | Type | Description |
---|---|---|
User
|
User | The user that matches the _machineId and _userId .
|
_machineId
|
String | The machine id last known for a User. Is used to try to identify the user and fill User user ref field the next time they're in a world with this component.
|
_userId
|
String | The user's account ID last known for a User. Is used to try to identify the user and fill User user ref field the next time they're in a world with this component.
|