You are not logged in.

1

Thursday, January 12th 2017, 1:00pm

Hide VR button/icon on desktop

Hello everyone,
I didn't find any information about that (seems strange since is a simple question) on the forum.
Please forgive me if is a my mistake.

I just want to know if there is a way to hide the VR button/icon when i'm not on a mobile device.

Is that possible?

Thank you in advance.

Alexey Tkachenko

Professional

Posts: 741

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Thursday, January 12th 2017, 1:42pm

Hi)

Open 'vtourskin.xml'.
Find action called 'skin_arrange_buttons"
Replace this line

Source code

1
calc(show_vrbutton,   webvr.isavailable == true);
with the following one:

Source code

1
calc(show_vrbutton,   webvr.isavailable == true AND device.mobile);



It shoudl do what you need.
Regards,

Alexey

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

3

Thursday, January 12th 2017, 4:46pm

Set fake VR on Desktop and tablet by simple settings: http://krpano.com/plugins/webvr/#mobilevr_fake_support

4

Thursday, January 12th 2017, 6:05pm

Thank you Alexey!
Works like a charm! *thumbsup*