Collectible Model
Collectible modelâ
Lets you display the 3d representation of your cryptovoxels collectible. It has a built-in UI window that displays information about the nft.
![[collectible_model]example_v7.18.png](/assets/images/[collectible_model]example_v7.18-5b9bcea6ba52a2b35df28d32b9f5a3cc.png)
Editorâ
![[collectible_model]editor_v7.18.png](/assets/images/[collectible_model]editor_v7.18-a58cbe6529e1c1b75087eba20a899a55.png)
Scripting Propertiesâ
Scripting Properties {.tabset}â
collectibleâ
Object; An object with multiple properties.
Properties:
{
chain_id: number
id: string
token_id: number
collection_id: number
quantity?: number
name: string
description?: string
hash: string
author: string
collection_name?: string
collection_address?: string
}
The hash is used to render the vox-model.
get()â
feature.get('collectible')
// returns: [Object Collectible]
set()â
feature.set({'collectible':myCollectible}) // myCollectible being a collectible object.
defaultâ
null
typeâ
String;
get()â
feature.get('type')
/* or */
feature.type
// returns: 'collectible-model'