Added info about complex types. |
Added information of deduplication. Added more information about metadata, added fonts to the list of assets. rearranged some sections. |
||
Line 11: | Line 11: | ||
|- | |- | ||
| Audio || audio data asset. | | Audio || audio data asset. | ||
|- | |||
| Font || the style used to show text | |||
|- | |- | ||
|} | |} | ||
Assets are | == Deduplication == | ||
Assets are deduplicated, which means that an asset saved in your inventory multiple times will only be counted against you once. Assets that have been changed (no matter how small, like one pixel change in a texture), the hash would be completely different, and would be counted against your storage. | |||
{{Note|Don't worry too much of how much an item takes up when it is shown in the [[Inventory]] of the [[Dash]]. This just shows how much it would take if it (or its parts) were not dedulplicated.|warning}} | |||
== Importing == | == Importing == | ||
Line 38: | Line 44: | ||
== 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. You can use [[Components]] to get or set this metadata information. | ||
== Assets In Worlds == | |||
Assets are usually stored in the [[Assets_(Slot)|Assets Slot]] in a world, and are regularly garbage collected to optimize a [[World|world]]. |
Revision as of 12:46, 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. |
Font | the style used to show text |
Deduplication
Assets are deduplicated, which means that an asset saved in your inventory multiple times will only be counted against you once. Assets that have been changed (no matter how small, like one pixel change in a texture), the hash would be completely different, and would be counted against your storage.
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:
- The File Browser
- Exporting from the Context Menu
- Copy Image from the Context Menu
- Save as screenshot in the Context Menu
- Using the Write Text To File node to create/write to a file on the user's device (only in unsafe worlds).
- Using the POST_String node to send out data to an address.
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. You can use Components to get or set this metadata information.
Assets In Worlds
Assets are usually stored in the Assets Slot in a world, and are regularly garbage collected to optimize a world.