Component:ItemShelf: Difference between revisions

From Resonite Wiki
Automated: update Fields
add info
 
Line 3: Line 3:
|Name=Item Shelf
|Name=Item Shelf
}}
}}
{{stub}}
The '''Item Shelf''' component, often referred to as the tool shelf, is found on the wrists of avatars and is used to place items or tools onto the user's hands for later retrieval or use. It is sometimes used by creations to keep an item on the user's hand.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|GrowDirection|'''[[#Direction|ItemShelf.Direction]]'''|TypeAdv0=true|
|GrowDirection|'''[[#Direction|ItemShelf.Direction]]'''|TypeAdv0=true| the direction the shelf should grow as the item area grows.
|IgnoreGrabber|'''[[Component:Grabber|Grabber]]'''|TypeAdv1=true|
|IgnoreGrabber|'''[[Component:Grabber|Grabber]]'''|TypeAdv1=true| The grabber that when items are released from it, the items should be ignored by this.
|MinLength|Float|
|MinLength|Float| The minimum length the shelf visual can be.
|Width|Float|
|Width|Float| The width of the shelf visual.
|Thickness|Float|
|Thickness|Float| The thickness of the shelf visual.
|MaxItemSize|Float|
|MaxItemSize|Float| The maximum size before items will not stick to this shelf.
|MaxPlaneDistance|Float|
|MaxPlaneDistance|Float| The max plane distance items can be before they will not stick to this shelf.
|MaxHeightDistance|Float|
|MaxHeightDistance|Float| The max height distance items can be before they will not stick to this shelf.
|_targetLength|Float|
|_targetLength|Float| The length this item shelf is tweening towards.
|_visual|Slot|
|_visual|Slot| The root of the shelf visual.
|_content|Slot|
|_content|Slot| The slot containing items for this item shelf.
|_material|'''[[PBS_RimMetallic|PBS_RimMetallic]]'''|TypeAdv11=true|
|_material|'''[[PBS_RimMetallic|PBS_RimMetallic]]'''|TypeAdv11=true| The material being used for the item shelf.
|_visualOffset|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv12=true|
|_visualOffset|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv12=true| The field being used to offset the visual position.
|_shelfMesh|{{RootFieldType|DriveRef`1|[[Component:BevelStripeMesh|BevelStripeMesh]]}}|TypeAdv13=true|
|_shelfMesh|{{RootFieldType|DriveRef`1|[[Component:BevelStripeMesh|BevelStripeMesh]]}}|TypeAdv13=true| The mesh being used for the shelf visual.
|_collider|{{RootFieldType|DriveRef`1|[[Component:BoxCollider|BoxCollider]]}}|TypeAdv14=true|
|_collider|{{RootFieldType|DriveRef`1|[[Component:BoxCollider|BoxCollider]]}}|TypeAdv14=true| The collider being used to receive items for this shelf.
}}
 
== Direction ==
{{Table EnumValues
|Left|0| Itemshelf should expand in the left direction.
|Right|1| Itemshelf should expand in the right direction.
}}
}}


== Behavior ==
== Usage ==
auto generated by the game.


== Examples ==
== Examples ==
The tool shelves the user has.


== See Also ==
== See Also ==
Line 33: Line 41:
[[Category:Components{{#translation:}}|Item Shelf]]
[[Category:Components{{#translation:}}|Item Shelf]]
[[Category:Components With Nested Enums{{#translation:}}|Item Shelf]]
[[Category:Components With Nested Enums{{#translation:}}|Item Shelf]]
[[Category:ComponentStubs]]

Latest revision as of 06:35, 22 March 2025

Component image 
Item Shelf component as seen in the Scene Inspector

The Item Shelf component, often referred to as the tool shelf, is found on the wrists of avatars and is used to place items or tools onto the user's hands for later retrieval or use. It is sometimes used by creations to keep an item on the user's hand.

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.
GrowDirection ItemShelf.Direction the direction the shelf should grow as the item area grows.
IgnoreGrabber Grabber The grabber that when items are released from it, the items should be ignored by this.
MinLength Float The minimum length the shelf visual can be.
Width Float The width of the shelf visual.
Thickness Float The thickness of the shelf visual.
MaxItemSize Float The maximum size before items will not stick to this shelf.
MaxPlaneDistance Float The max plane distance items can be before they will not stick to this shelf.
MaxHeightDistance Float The max height distance items can be before they will not stick to this shelf.
_targetLength Float The length this item shelf is tweening towards.
_visual Slot The root of the shelf visual.
_content Slot The slot containing items for this item shelf.
_material PBS_RimMetallic The material being used for the item shelf.
_visualOffset field drive of Float3 The field being used to offset the visual position.
_shelfMesh reference drive of BevelStripeMesh The mesh being used for the shelf visual.
_collider reference drive of BoxCollider The collider being used to receive items for this shelf.

Direction

Values
Name Value Description
Left 0 Itemshelf should expand in the left direction.
Right 1 Itemshelf should expand in the right direction.

Usage

auto generated by the game.

Examples

The tool shelves the user has.

See Also