Unable to use poly hotspot color change API
Posted: Fri Apr 12, 2024 9:00 pm
Hi Hopki / team Object2VR,
We are trying to change color of a specific poly hotspot with id="02" by making an API call. However, it doesn't work. Can you please help ?
This is the code we are trying to use
We also tried using player.changePolyHotspotColor("02", 0x0E6D6E, 0.5, 0x2A1C74, 1); but it throws a console error saying "player is not defined"
Please help. Thank you
We are trying to change color of a specific poly hotspot with id="02" by making an API call. However, it doesn't work. Can you please help ?
This is the code we are trying to use
Code: Select all
function changeColor(){
obj.changePolyHotspotColor("02", 0x0E6D6E, 0.5, 0x2A1C74, 1);
}
Please help. Thank you