Component:DestroyOnUserLeave: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page DestroyOnUserLeave (Component) to Component:DestroyOnUserLeave: Creating component Namespace
Automated: update Fields, Categories
Line 10: Line 10:
== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|User|User| The user that will cause the parent slot to be deleted upon leaving
|TargetUser|{{RootFieldType|UserRef}}|TypeAdv0=true|
|_machineId|String| ''Automatically Assigned''
|_userId|String| ''Automatically Assigned''
}}
}}
== Behavior ==
== Behavior ==
Line 18: Line 16:
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:Components{{#translation:}}|DestroyOnUserLeave (Component){{#translation:}}]]
[[Category:Components{{#translation:}}|Destroy On User Leave]]
[[Category:Components:Transform{{#translation:}}|DestroyOnUserLeave (Component){{#translation:}}]]
[[Category:Components:Transform{{#translation:}}|Destroy On User Leave]]

Revision as of 21:09, 3 March 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
DestroyOnUserLeave component as seen in the Scene Inspector

Intoduction

The DestroyOnUserLeave component causes the parent slot to be deleted when the user specified in User leaves the world.

Usage

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.
TargetUser direct UserRef

Behavior

Examples

Related Components