25 Metadata Type Object
The Metadata type object stores data relevant to an asset.
All members in Metadata are OPTIONAL and if they are not specified, the default value will be used. Modules and extension specifications can define additional members in type Metadata beyond those specified in this section. It is RECOMMENDED that modules make use of the attachment and propertiesmembers rather than introducing new members in the Metadata type.
Metadata type is define as
interface Metadata {
id: string,
name: string,
description: string,
preview: string,
creators: string[],
attachments: ArtifactAttachments
properties: ArtifactProperties
// ...
}
where
idMUST be of typestringrepresenting the path or asset ID of the artifact. Its default value is thecontentstring of the artifact. It is RECOMMENDED that all artifacts loaded in the scene have distinctidvalues.nameMUST be of typestringand is the display name of the artifact. Its default value is"Artifact".descriptionMUST be of typestringand is the display description of the artifact. Its default value is"", i.e., an empty string.previewMUST be of typestringcontaining the URL to the preview image file, and it is RECOMMENDED that the preview image file be of type PNG.creatorsMUST be an array ofstringrepresenting the creators of the artifact.attachmentMUST be of typeArtifactAttachments, representing any associated files relevant to this artifact. Theattachmentmember is mainly used by modules and extension specifications.propertiesMUST be of typeArtifactProperties. It stores data that modifies or enhances the artifact's behavior in the scene. Thepropertiesmember is mainly used by modules and extension specifications.