Component:DestroyOnUserLeave: Difference between revisions

From Resonite Wiki
imported>Epsilion
Created page with "<languages></languages> <translate> {{stub}} {{Infobox Component |Image=DestroyOnUserLeaveComponent.png |Name=DestroyOnUserLeave }} == Intoduction == The '''DestroyOnUserLeave..."
 
m "intoduction"
 
(3 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|Name=DestroyOnUserLeave
|Name=DestroyOnUserLeave
}}
}}
== Intoduction ==
The '''DestroyOnUserLeave''' component causes the parent slot to be deleted when the user specified in <code>User</code> leaves the world.
The '''DestroyOnUserLeave''' component causes the parent slot to be deleted when the user specified in <code>User</code> leaves the world.
== 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| The user that will cause the parent slot to be deleted upon leaving
|_machineId|String| ''Automatically Assigned''
|_userId|String| ''Automatically Assigned''
}}
}}
== Behavior ==
== Behavior ==
Line 18: Line 15:
== 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]]

Latest revision as of 01:22, 20 April 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

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 The user that will cause the parent slot to be deleted upon leaving

Behavior

Examples

Related Components