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

  • Hi,

    Yes, just add these lines anywhere in your xml:

    Code
    <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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!