String.
; Links must be https://
and must finish with an audio extension such as .mp3
feature.get('url')
// returns: "https://..."
feature.set({'url':"https://www.myurl.com/file.mp3"})
""
Boolean.
feature.get('sprite')
// returns: false
feature.set({'sprite': true})
false
Boolean.
feature.get('streaming')
// returns: false
feature.set({'streaming': true})
false
Boolean.
feature.get('autoplay')
// returns: false
feature.set({'autoplay': true})
false
Boolean.
feature.get('loop')
// returns: false
feature.set({'loop': true})
false
double
; Value ranging from 0 to 5
feature.get('rolloffFactor')
// returns: 1.6
feature.set({'rolloffFactor': 1.6})
1.6
feature.play()
plays the audio
feature.pause()
pauses the audio
String.
; Options are 'white', 'red', 'green', and 'blue'.
feature.get('color')
// returns: "red"
feature.set({'color':"blue"})
"red"
Integer
; can be an integer in the range of 0 - 14.
'-1'
- None
'0'
- ding dong
'1'
- pong
'2'
- pshlick - sounds like a hydraulic trigger
'3'
- breet - sounds like a PC attempting to connect to internet
'4'
- claclack - sounds like a someone spamming a keyboard
'5'
- tpow Cling - sounds like a ball hitting a racket and then a metal pole
'6'
- traarz - sounds like a printer
'7'
- wuwuwuwu - sounds like a UFO
'8'
- flickfli - sounds like someone going through a paper tray
'9'
- pshing dong - sounds like a cymbal and a ding dong
'10'
- bzing - sounds like a quick zing (honestly)
'11'
- tadaw - sounds like a clown noise
'12'
- shplow - sounds like a PVC pipe being hit
'13'
- tshlshlsh - sounds like a notes counter
'14'
- miaaaaaa - sounds like a cat being harassed
'15'
- miaoowww - sounds like a hungry cat
feature.get('soundId')
// returns: "0"
feature.set({'soundId':"-1"})
//Remember the soundId has to be a String
"0"
Using the scripting field, you can listen to clicks with
feature.on('click',e=>{
Your action when click here
})
You can also know who clicked the button by doing:
feature.on('click',e=>{
console.log(e.player)
})
String
; Links must be https://
and must finish with an extension such as .jpg/.gif/.png
.
feature.get('url')
// returns: "https://..."
feature.set({'url':"https://www.myurl.com/file.png"})
""
String
; Links must be https://
.
feature.get('link')
// returns: "https://..."
feature.set({'link':"https://www.myurl.com/"})
""
String
feature.get('blendMode')
// returns: 'Combine'
feature.set({'blendMode': 'Combine'})
"Multiply"
Boolean.
feature.get('updateDaily')
// returns: false
feature.set({'updateDaily': true})
false
Boolean.
feature.get('transparent')
// returns: false
feature.set({'transparent': true})
false
String
; Links must be https://
and must finish with a vox extension .vox
Has to link to a 126x126x126 vox model.
feature.get('url')
// returns: "https://..."
feature.set({'url':"https://www.myurl.com/file.vox"})
""
String
; Links must be https://
.
feature.get('link')
// returns: "https://..."
feature.set({'link':"https://www.myurl.com/"})
""
String
; Links must be https://
and must finish with an extension such as .jpg/.gif/.png
.
If you set an URL, the custom colors color1 and color2 will be ignored.
feature.get('url')
// returns: "https://..."
feature.set({'url':"https://www.myurl.com/file.png"})
""
Double
; Must be a number between 0 and 100.
feature.get('emitRate')
// returns: 50.0
feature.set({'emitRate':52})
50
Double
; Must be a number between 0 and 1.
feature.get('minSize')
// returns: 0.5
feature.set({'minSize':0.5})
0.5
Double
; Must be a number between 0 and 1.
feature.get('maxSize')
// returns: 0.5
feature.set({'maxSize':0.5})
0.5
String
- hexadecimal;
feature.get('color1')
// returns: "#4cb844"
feature.set({'color1':"#4cb844"})
#000000
String
;
feature.get('text')
// returns: "My new text"
feature.set({'text':"My new text"})
""
String
;
feature.get('text')
// returns: "my text"
feature.set({'text':"my text"})
""
String
; Links must be https://
and must either be a youtube, twitch, soundcloud, spotify
.
feature.get('url')
// returns: "https://..."
feature.set({'url':"https://www.youtube.com/?v=..."})
""
String
; Links must be https://
and must either be a .png,.gif,jpg
.
feature.get('previewUrl')
// returns: "https://..."
feature.set({'previewUrl':"https://..."})
""
feature.play()
plays the video
feature.pause()
pauses the video
String
; Links must be https://
.
feature.get('url')
// returns: "https://..."
feature.set({'url':"https://www.opensea.io/"})
""
String
;
feature.get('text')
// returns: "https://..."
feature.set({'text':"my paragraph"})
""
String
feature.get('blendMode')
// returns: 'Combine'
feature.set({'blendMode': 'Combine'})
"Multiply"
String
;
feature.get('text')
// returns: "my line of text"
feature.set({'text':"my line of text"})
""
String
;
feature.get('link')
// returns: "https://..."
feature.set({'link':"https://..."})
""
Integer
;
feature.get('fontSize')
// returns: 25
feature.set({'fontSize':25})
25
String
-hexadecimal;
feature.get('color')
// returns: "#00000"
feature.set({'color':"#fcba03"})
"#00000"
String
; Has to start with https://
and has to end with a video extension such as .mp4
.
feature.get('url')
// returns: "https://..."
feature.set({'url':"https://..."})
""
feature.play()
plays the video
feature.pause()
pauses the video
String
; Links must be https://
and must finish with a vox extension .vox
Has to link to a 32x32x32 vox model or smaller.
feature.get('url')
// returns: "https://..."
feature.set({'url':"https://www.myurl.com/file.vox"})
""
String
; Links must be https://
.
feature.get('link')
// returns: "https://..."
feature.set({'link':"https://www.myurl.com/"})
""