Component:FileMetadata: Difference between revisions

From Resonite Wiki
Added a see also section for this page.
update
 
(5 intermediate revisions by 2 users not shown)
Line 7: Line 7:
|Name=File Metadata
|Name=File Metadata
}}
}}
File metadata is a component used in RawFile object imports and is often taken advantage of for [[Cloud Spawning]].
This component has two [[Sync Delegate|sync delegates]] which import and export data from a [[Component:StaticBinary|Static Binary Component]] on the same slot.


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Filename|String|
|Filename|String| The name of the file, usually followed by .brson or .7bson
|MIME|String|
|MIME|String| see [https://en.wikipedia.org/wiki/Media_type Media Types (MIME)]
|IsProcessing|Bool|
|IsProcessing|Bool| whether this component is currently processing an import or export action asynchronously.
}}
 
== Sync Delegates ==
{{Table ComponentTriggers
|OnImportFile:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| See [[Cloud Spawning]].
|OnExportFile:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| See [[Cloud Spawning]].
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
See [[Cloud Spawning]].


<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
Usually used in RawFile object imports created by importing files from a local computer.


<!--T:5-->
<!--T:5-->
== Related Components ==
== Related Components ==
* [[Component:StaticBinary|Static Binary]]


== See Also ==
== See Also ==
[https://en.wikipedia.org/wiki/Media_type Media Types (MIME)]
[https://en.wikipedia.org/wiki/Media_type Media Types (MIME)]
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|File Metadata]]
[[Category:Components{{#translation:}}|File Metadata]]
[[Category:Components:Data{{#translation:}}|File Metadata]]
[[Category:Components:Data{{#translation:}}|File Metadata]]

Latest revision as of 20:40, 19 March 2025


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

Component image 
File Metadata component as seen in the Scene Inspector

File metadata is a component used in RawFile object imports and is often taken advantage of for Cloud Spawning.

This component has two sync delegates which import and export data from a Static Binary Component on the same slot.

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.
Filename String The name of the file, usually followed by .brson or .7bson
MIME String see Media Types (MIME)
IsProcessing Bool whether this component is currently processing an import or export action asynchronously.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
OnImportFile:ButtonEventHandler ButtonEventHandler See Cloud Spawning.
OnExportFile:ButtonEventHandler ButtonEventHandler See Cloud Spawning.

Usage

See Cloud Spawning.

Examples

Usually used in RawFile object imports created by importing files from a local computer.

Related Components

See Also

Media Types (MIME)