Component:PackageExportable: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
Not a component stub
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
}}
}}
{{stub}}
{{stub}}
The '''PackageExportable''' component takes in any [[Slot]] hierarchy as a field, and when the slot that has this exportable component on it gets exported, it will actually save a file on your device of the target slot hierarchy provided (and not the item that your exporting from unless it is also under that hierarchy).


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Root|Slot|
|Root|Slot| The slot hierarchy to be exported.
}}
}}


== Behavior ==
== Usage ==
 
This can be a better alternative than using the [[Component:BinaryExportable|BinaryExportable]] for storage of assets, items, or worlds.


== Examples ==
== Examples ==
Line 18: Line 22:
[[Category:Components:Assets:Export{{#translation:}}|Package Exportable]]
[[Category:Components:Assets:Export{{#translation:}}|Package Exportable]]
[[Category:Components{{#translation:}}|Package Exportable]]
[[Category:Components{{#translation:}}|Package Exportable]]
[[Category:ComponentStubs]]

Latest revision as of 16:10, 24 October 2024

Component image 
Package Exportable component as seen in the Scene Inspector


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


The PackageExportable component takes in any Slot hierarchy as a field, and when the slot that has this exportable component on it gets exported, it will actually save a file on your device of the target slot hierarchy provided (and not the item that your exporting from unless it is also under that hierarchy).

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.
Root Slot The slot hierarchy to be exported.

Usage

This can be a better alternative than using the BinaryExportable for storage of assets, items, or worlds.

Examples

See Also