You are not logged in.

  • "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