Cube
Cubeâ
The cube feature is a simple cube mesh that you can texture or color.
![[cube-feature]example.png](/assets/images/[cube-feature]example-a02b17f93f29362bc68e491ff6e55f49.png)
Editorâ
{.align-center}
URLâ
The URL of the image that will be used as texture.
Collidableâ
(Optional); Make the cube a collidable object.
Colorsâ
(Optional);
Allows you to change the color of your cube.
Scripting Propertiesâ
Scripting Properties {.tabset}â
urlâ
String; Links must be https:// and must finish with an image extension.
get()â
feature.get('url')
// returns: "https://..."
set()â
feature.set({'url':"https://www.myurl.com/file.png"})
defaultâ
""
Colorâ
String; An Hex color string such as #000.
get()â
feature.get('color')
// returns: "#ffffff"...
set()â
feature.set({'color':"#4287f5"})
defaultâ
"#000000"
collidableâ
Boolean
get()â
feature.get('collidable')
// returns: false
set()â
feature.set({'collidable': true})
defaultâ
false
typeâ
String;
get()â
feature.get('type')
/* or */
feature.type
// returns: 'cube'