Asset: Difference between revisions

From Resonite Wiki
Created a page for Assets. Marked it as a stub as I feel this could use a bit more information.
 
Added info about complex types.
Line 33: Line 33:


Assets are used in [[Type:IAssetProvider`1|IAssetProviders]] are used to reference an asset like a [[Reference Type|reference type]] in [[Component|components]] and [[ProtoFlux]].
Assets are used in [[Type:IAssetProvider`1|IAssetProviders]] are used to reference an asset like a [[Reference Type|reference type]] in [[Component|components]] and [[ProtoFlux]].
This is often useful when using [[Complex Types in Components|complex types]].


== Metadata ==
== Metadata ==


Assets contain metadata and this can be used to access information about the asset.
Assets contain metadata and this can be used to access information about the asset.

Revision as of 01:28, 4 June 2024

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


an Asset in the context of Resonite, is an object that represents content, either from a user importing it or built into resonite.

Some examples of assets are:

Asset Type Description
Texture a 2D image.
Audio audio data asset.

Assets are usually stored in the Assets Slot in a world, and are regularly garbage collected to optimize a world.

Importing

Users can import many different asset types, either by pasting Ctrl+V, using the File Browser, or dragging and dropping it into Resonite itself, and then using the Resonite dialog to bring it in. As long as the file type is supported, Resonite will process it.

Exporting

Assets and data can be brought out of Resonite in many different ways:

Types

Assets are used in IAssetProviders are used to reference an asset like a reference type in components and ProtoFlux.

This is often useful when using complex types.

Metadata

Assets contain metadata and this can be used to access information about the asset.