Type:User: Difference between revisions

From Resonite Wiki
added a clarification and change category
reword
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
A reference to a User connected to the session. Not to be confused with the physical form [[User]].
The '''User''' type is a [[reference type]] underlying the concept of a [[user]]. This type stores all the fields and components interactable in the [[user inspector]], for example.
 
This type is a direct reference to a user in a session and is non-persistent. If a user leaves and rejoins the session, fields of this type will be nulled out. For a more permanent reference to a user that persists across rejoins, the [[Type:UserRef|UserRef]] type is more suitable.
 
[[Category:Type]]
[[Category:Type]]
[[Category:Reference types]]

Latest revision as of 03:44, 10 June 2025

The User type is a reference type underlying the concept of a user. This type stores all the fields and components interactable in the user inspector, for example.

This type is a direct reference to a user in a session and is non-persistent. If a user leaves and rejoins the session, fields of this type will be nulled out. For a more permanent reference to a user that persists across rejoins, the UserRef type is more suitable.