Component:GrabbablePermissions: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
 
Line 3: Line 3:
|Name=Grabbable Permissions
|Name=Grabbable Permissions
}}
}}
{{stub}}
The '''GrabbablePermissions''' component is used to control what roles can pick up what items.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Tags|{{RootFieldType|TagFilter}}|TypeAdv0=true|
|Tags|{{RootFieldType|TagFilter}}|TypeAdv0=true| A tag filter to filter what tags can or can't be grabbed by the selected roles.
|ValidateTypeListMode|ListFilterMode|
|ValidateTypeListMode|ListFilterMode| how to use the <code>ValidateTypes</code> list for the selected roles.
|ValidateTypes|{{RootFieldType|SyncTypeList}}|TypeAdv2=true|
|ValidateTypes|{{RootFieldType|SyncTypeList}}|TypeAdv2=true| A list of C# types that will have <code>ValidateTypeListMode</code> applied to them.
}}
}}


== Behavior ==
== Usage ==
{{stub}}


== Examples ==
== Examples ==
Used in the default world permissions slot in the root of a world to prevent spectators from interacting with items.


== See Also ==
== See Also ==
Line 20: Line 22:
[[Category:Components:Permissions{{#translation:}}|Grabbable Permissions]]
[[Category:Components:Permissions{{#translation:}}|Grabbable Permissions]]
[[Category:Components{{#translation:}}|Grabbable Permissions]]
[[Category:Components{{#translation:}}|Grabbable Permissions]]
[[Category:ComponentStubs]]

Latest revision as of 18:09, 20 January 2025

Component image 
Grabbable Permissions component as seen in the Scene Inspector

The GrabbablePermissions component is used to control what roles can pick up what items.

Fields

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. Some components stop their functionality when this field is disabled, but some don't.
Tags direct TagFilter A tag filter to filter what tags can or can't be grabbed by the selected roles.
ValidateTypeListMode ListFilterMode how to use the ValidateTypes list for the selected roles.
ValidateTypes list of SyncType A list of C# types that will have ValidateTypeListMode applied to them.

Usage

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


Examples

Used in the default world permissions slot in the root of a world to prevent spectators from interacting with items.

See Also