Component:InventoryLink: Difference between revisions

From Resonite Wiki
imported>Mysticporo
Created page with "<languages></languages> <translate> <!--T:1--> {{stub}} {{Infobox Component |Image=InventoryLinkComponent.png |Name=Inventory Link }} <!--T:2--> == Fields == {{Table Componen..."
 
add info
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
|Name=Inventory Link
|Name=Inventory Link
}}
}}
This component overrides the saving behavior of an item being saved to act as an inventory folder. The component will be overridden by another component if it is under another slot on an item with a different export behavior. (Ex: A [[Component:TextureExportable|Texture Exportable Component]])


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|TargetName|String|
|TargetName|String| The name of the folder this component is linking to. This will change the display name of the folder when saved, but if shared by the same user again from their inventory, this will become what the cloud says the folder's name is and not the custom name it was when saved.
|Target|Uri|
|Target|Uri| The folder URI link on the cloud that this component represents.
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Attach to a slot and give the component a <code>TargetName</code> and a URI that links to a folder on the cloud for the <code>Target</code> saving an item with this component on it will make the item act like a folder link.


<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
Is the core component that drives the saving behavior of shared folder links within the world. (Those blue rectangle styled folders with a name on them)


<!--T:5-->
<!--T:5-->
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Inventory Link]]
[[Category:Components{{#translation:}}|Inventory Link]]
[[Category:Components:Cloud{{#translation:}}|Inventory Link]]
[[Category:Components:Cloud{{#translation:}}|Inventory Link]]

Latest revision as of 16:53, 23 October 2024


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


Component image 
Inventory Link component as seen in the Scene Inspector

This component overrides the saving behavior of an item being saved to act as an inventory folder. The component will be overridden by another component if it is under another slot on an item with a different export behavior. (Ex: A Texture Exportable Component)

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.
TargetName String The name of the folder this component is linking to. This will change the display name of the folder when saved, but if shared by the same user again from their inventory, this will become what the cloud says the folder's name is and not the custom name it was when saved.
Target Uri The folder URI link on the cloud that this component represents.

Usage

Attach to a slot and give the component a TargetName and a URI that links to a folder on the cloud for the Target saving an item with this component on it will make the item act like a folder link.

Examples

Is the core component that drives the saving behavior of shared folder links within the world. (Those blue rectangle styled folders with a name on them)

Related Components