userspace |
update |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 20: | Line 20: | ||
== Sync Delegates == | == Sync Delegates == | ||
{{Table ComponentTriggers | {{Table ComponentTriggers | ||
|DoLoginLogout:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|false| | |DoLoginLogout:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|false| Triggers the login/logout process. | ||
}} | }} | ||
Line 29: | Line 29: | ||
== Examples == | == Examples == | ||
The UserProfile facet in [[Resonite Essentials]] uses UserLoginManager for getting profile information and logging out the user: | |||
* <code>resrec:///G-Resonite/R-c01a8b5b-be64-4b35-aa16-a20ff5f8a030</code> | |||
== See Also == | == See Also == | ||
* [[Dash Menu]] | * [[Dash Menu]] | ||
[[Category:Components:Cloud{{#translation:}}|User Login Manager]] | [[Category:Components:Cloud{{#translation:}}|User Login Manager]] | ||
[[Category:Components{{#translation:}}|User Login Manager]] | [[Category:Components{{#translation:}}|User Login Manager]] |
Latest revision as of 17:50, 3 May 2025
Component image 
UserLoginManager component as seen in the Scene Inspector

The UserLoginManager component is used to handle the user's login status.
Usage
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. |
IsLoggedIn
|
raw output of Bool | Whether the current user is logged in or not. |
IsLoggingOut
|
raw output of Bool | Whether the local user is currently logging out or not. |
CurrentUsername
|
raw output of String | The username of the local user. |
CurrentUserId
|
raw output of String | The user ID of the local user. |
CurrentAccountType
|
raw output of String | The account type of the local user (patreon status or team member likewise) |
CurrentAccountColorOverride
|
raw output of Nullable`1<ColorX> | The current user color override of the local user. Like nametag colors. |
CurrentProfileIcon
|
Uri | The user icon of the local user. |
LoginLogoutButton
|
Button | Only works in userspace. Is the button for logging in or out. |
Sync Delegates
Method Name | Method type and Arguments. | Is the method hidden? | Description |
---|---|---|---|
DoLoginLogout:ButtonEventHandler
|
ButtonEventHandler | X | Triggers the login/logout process. |
Usage
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Examples
The UserProfile facet in Resonite Essentials uses UserLoginManager for getting profile information and logging out the user:
resrec:///G-Resonite/R-c01a8b5b-be64-4b35-aa16-a20ff5f8a030