25 Metadata Type Objectv0.1.32 → v0.1.33
Changed in v0.1.33 (2026-04-03): now add category code example for sky category
→+2 −2
| v0.1.32 | v0.1.33 | ||
|---|---|---|---|
| 12 | description: string, | 12 | description: string, |
| 13 | preview: string, | 13 | preview: string, |
| 14 | creators: string[], | 14 | creators: string[], |
| 15 | attachment: ArtifactAttachment | 15 | attachments: ArtifactAttachments |
| 16 | properties: ArtifactProperties | 16 | properties: ArtifactProperties |
| 17 | // ... | 17 | // ... |
| 18 | } | 18 | } |
| 19 | ``` | 19 | ``` |
| 20 | where | 20 | where |
| 21 | * `id` MUST be of type `string` representing the path or asset ID of the artifact. Its default value is the `content` string of the artifact. It is RECOMMENDED that all artifacts loaded in the scene have distinct `id` values. | 21 | * `id` MUST be of type `string` representing the path or asset ID of the artifact. Its default value is the `content` string of the artifact. It is RECOMMENDED that all artifacts loaded in the scene have distinct `id` values. |
| 22 | * `name` MUST be of type `string` and is the display name of the artifact. Its default value is `"Artifact"`. | 22 | * `name` MUST be of type `string` and is the display name of the artifact. Its default value is `"Artifact"`. |
| 23 | * `description` MUST be of type `string` and is the display description of the artifact. Its default value is `""`, i.e., an empty string. | 23 | * `description` MUST be of type `string` and is the display description of the artifact. Its default value is `""`, i.e., an empty string. |
| 24 | * `preview` MUST be of type `string` containing the URL to the preview image file, and it is RECOMMENDED that the preview image file be of type PNG. | 24 | * `preview` MUST be of type `string` containing the URL to the preview image file, and it is RECOMMENDED that the preview image file be of type PNG. |
| 25 | * `creators` MUST be an array of `string` representing the creators of the artifact. | 25 | * `creators` MUST be an array of `string` representing the creators of the artifact. |
| 26 | * `attachment` MUST be of type `ArtifactAttachment`, representing any associated files relevant to this artifact. The `attachment` member is mainly used by modules and extension specifications. | 26 | * `attachment` MUST be of type `ArtifactAttachments`, representing any associated files relevant to this artifact. The `attachment` member is mainly used by modules and extension specifications. |
| 27 | * `properties` MUST be of type `ArtifactProperties`. It stores data that modifies or enhances the artifact's behavior in the scene. The `properties` member is mainly used by modules and extension specifications. | 27 | * `properties` MUST be of type `ArtifactProperties`. It stores data that modifies or enhances the artifact's behavior in the scene. The `properties` member is mainly used by modules and extension specifications. |