Hi Klaus,
I have a special case that is perplexing me, an attribute in a style element that should be set (reset?) depending on the webvr state. I thought I could use calc but maybe not??
|
Quellcode
|
1
|
<style name="detail_hs" scale="calc:(webvr.isenabled ? 0.25 : 0.5)" />
|
I've tried with and without parentheses. The alternative value (0.5) is selected even when in VR mode. That may be because when the XML is loaded we aren't in VR mode?
My workaround (it feels inelegant) is to test each hotspot for a defining attribute (eg: style="detail_hs") and dynamically change scale when entering or exiting VR Mode. Is that best practice?