Component:FileMetadata: Difference between revisions

From Resonite Wiki
oops
Automated: update SyncDelegates
Line 17: Line 17:
|MIME|String| see [https://en.wikipedia.org/wiki/Media_type Media Types (MIME)]
|MIME|String| see [https://en.wikipedia.org/wiki/Media_type Media Types (MIME)]
|IsProcessing|Bool| whether this component is currently processing an import or export action asynchronously.
|IsProcessing|Bool| whether this component is currently processing an import or export action asynchronously.
}}
== Sync Delegates ==
{{Table ComponentTriggers
|OnImportFile(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|OnExportFile(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
}}
}}



Revision as of 22:29, 16 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

Lua error in mw.text.lua at line 25: bad argument #1 to 'match' (string expected, got nil).
Triggers
Method Name Method type and Arguments. Is the method hidden? Description

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)