Page 1 of 1

Object2VR javascript possible bug

Posted: Mon Jul 22, 2024 3:37 pm
by HSharma​
Hi,
I have defined a custom hotspot property called "direction" for a hotspot. I use this custom hotspot property inside a skin hotspot template to change the direction of my ui element. The hotspot works fine initially. However when i change the value of custom property using the javascript call setHotspotPropValue(), the value is changed, but the UI does not reflect the change. If i do getHotspotPropValue() in the debug inspector, I can see the value has changed... But the UI, which should ideally reflect the change in value does not...Can this be fixed asap?

thanks
Harsh

Re: Object2VR javascript possible bug

Posted: Tue Jul 23, 2024 11:56 am
by Hopki
Hi Harsh,
The team has replied to your e-mail but for anyone following, this is what they advised:

The functions to access custom hotspot properties have a first parameter, nodeID, which is used for Pano2VR, but useless in Object2VR, so basically you were right to leave that parameter empty. But this is where we have a bug in our player.
So instead of leaving that parameter empty, use 'object' as nodeID.
- obj.getHotspotPropValue("object", .....)
- obj.setHotspotPropValue("object", .....)

This should fix your problem.