You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "Virtuality Innoventure" started this thread

Posts: 1

Location: Bengaluru

Occupation: Developer

  • Send private message

1

Thursday, September 5th 2019, 7:16pm

Can we enable VR_Cursor only when it hovers a Hotspot in VR Mode

How can we enable VR_Cursor only when it hovers a Hotspot in VR Mode

2

Friday, September 6th 2019, 10:04am

Hi,

Yes, just add these lines anywhere in your xml:

Source code

1
2
3
4
5
6
<plugin name="webvr" keep="true"
        vr_cursor_onover="if(handcursor, tween(hotspot[vr_cursor].scale|hotspot[vr_cursor].alpha,0.4|1.0,0.1); vr_auto_click(get(vr_timeout)); );"
        vr_cursor_onout="tween(hotspot[vr_cursor].scale|hotspot[vr_cursor].alpha,0.3|0.0,0.1);"
        />

<style name="vr_cursor_style" alpha="0" />


This will overwrite some settings from the webvr.xml and set alpha=0 by default for the vr-cursor, and tweens to alpha=1 when hovering something.

Alternatively these settings could be also changed directly in the webvr.xml.

Best regards,
Klaus