Skip to main content

Resource

The resource is an data structure that contains information about a file or a group of files, such as meshes, images, or sound files. The resource has three properties:

  • Name: the name of the resource, represented as a string.
  • Type: the type of resource, such as "mesh", "image", or "sound", represented as a string.
  • Use: how do you use this reseource

The resource object provides a convenient way to store and access information about a file or a group of files.

KeyTypeDescription
namestringName of a resource
typestringType of a resource
usestringHow do you use this resource

Example

Resource example
{
"name": "Great cover image of my collection",
"type": "image",
"use": "cover"
}