Player Width Logic Block

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
Handers360
Posts: 7
Joined: Mon Oct 10, 2022 11:01 am

Hi,

I would like to make a skin that is suitable for different devices.

My idea is to build 3 containers:
_container-1 for desktop (1024px and above)
_container-2 for tablets (between 768px and 980px and above)
_container-3 for mobile (between 320px and 768px and above)

Now I want to create a logic block trigger that looks at the screen-size and then shows/call the required container.

My questions;
Is the posible?
Does anyone have an example or could help me further?

Kind regards,

Harry
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Harry,
It depends on which version of Pano2VR you are using, but with Pano2VR 7 you can set up a mobile logic block.
Take a look at the packaged skins that come with Pano2VR 7, in the variable list you will see a variable called resp_phone, this has a variable logic block that states that if screen width =< 1024 it will be true.
So you can, scale, show and hide elements using this variable.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Handers360
Posts: 7
Joined: Mon Oct 10, 2022 11:01 am

Thank you.

I think I understand :)

Let's have a pano2VR day today :)


Have a nice day.

Harry
Post Reply