Howdy Klaus,
In v1.20.x XML I often see a layer attribute of "vr" which seems always to be set "true." (So, default = false?) I haven't found documentation on this. What is this for?
Howdy Klaus,
In v1.20.x XML I often see a layer attribute of "vr" which seems always to be set "true." (So, default = false?) I haven't found documentation on this. What is this for?
Hi)
It's used inside 'webvr_hide_all_non_vr_layers' action inside webvr.xml
this param decides which layers to show in VR mode (on mobile obviously).
Thanks Alexey,
I had wondered if it could be something like that. Could find nothing in the WebVR docs so did a test using a layer with vr="true" and it still disappeared in VR mode. So still don't understand what exactly it does and how to use it.
Hi)
Did you tested this layer on MobileVR or on actual VR (Oculus, HTC)?
I guess this 'VR' setting is not documented because it's a kind of a custom 'tag' to mark some layers.
For example, inside 'webvr.xml' there's a layer named 'webvr_enterbutton' (ENTER VR button). On mobile I can see this layer, of course, it opens Mobile VR settings.
I'm sure this layer is not visible in real VR on HTC, because there only WebGL (and no layers) can be dispayed.
So, dug into the code and I think you are right. vr="true" is used to keep layers from being hidden when going into Fake VR mode. Also on a phone, if you are in VR mode and tap the screen these "vr" layers show up. And yes, on my Go they don't show up when in VR mode.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!