Component:FileMetadata: Difference between revisions

From Resonite Wiki
Automated: update SyncDelegates
Automated: update SyncDelegates
Line 21: Line 21:
== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|OnImportFile(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|OnImportFile[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnExportFile(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|OnExportFile[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
}}
}}



Revision as of 06:02, 17 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
OnImportFileButtonEventHandler ButtonEventHandler
OnExportFileButtonEventHandler ButtonEventHandler

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)