Component:ModelExportable: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
|Name=Model Exportable
|Name=Model Exportable
}}
}}
{{stub}}
The '''ModelExportable''' component is used to mark a slot hierarchy as a model that can be exported to a user's local machine. This will export static and skinned meshes, but is subject to the same restrictions normal model exporting has.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Root|Slot|
|Root|Slot| The slot to treat as a model that can be exported.
|OnlyComponents|{{RootFieldType|SyncRefList`1|[[Component:Component|Component]]}}|TypeAdv1=true|
|OnlyComponents|{{RootFieldType|SyncRefList`1|[[Type:Component|Component]]}}|TypeAdv1=true| What components should only be exported, rather than all mesh data components in the hiearchy. If this list is blank, it will not have any affect.
}}
}}


== Behavior ==
== Usage ==
{{Template:AssetExportableUsage}}


== Examples ==
== Examples ==
{{stub}}


== See Also ==
== See Also ==
{{Template:AssetExportableComponents}}


[[Category:Components:Uncategorized{{#translation:}}|Model Exportable]]
[[Category:Components:Uncategorized{{#translation:}}|Model Exportable]]
[[Category:Components{{#translation:}}|Model Exportable]]
[[Category:Components{{#translation:}}|Model Exportable]]
[[Category:ComponentStubs]]

Latest revision as of 17:35, 13 November 2024

Component image 
Model Exportable component as seen in the Scene Inspector

The ModelExportable component is used to mark a slot hierarchy as a model that can be exported to a user's local machine. This will export static and skinned meshes, but is subject to the same restrictions normal model exporting has.

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.
Root Slot The slot to treat as a model that can be exported.
OnlyComponents list of Component What components should only be exported, rather than all mesh data components in the hiearchy. If this list is blank, it will not have any affect.

Usage

This component is used mainly to add an export option to the user's context menu as they are holding an item. Which can be used to easily communicate to the user that an item is made for exporting to their local machine. For example, screenshots, figurines, pictures, recorded audio clips, some generated text from protoflux, and Avatars can have Asset exportables like this component to signify that they can be downloaded to one's local storage.

Examples

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


See Also