Object2VR javascript possible bug

Q&A about the latest versions
Post Reply
HSharma​
Posts: 48
Joined: Wed Aug 02, 2017 2:32 pm

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
User avatar
Hopki
Gnome
Posts: 13206
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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.
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply