Hi everyone, I am new in this forum and I try to collect first experiences with Pano2VR. Right now I got stuck with the following problem:
I created a floor plan and placed it on the skin editor. I would like it to disappear if the window becomes less than 800 pixel.
I tried to add a class and to include a custom CSS-file to set this class to "display:none;" but this way it doesn’t work…
Can anybody help?
Thx, Kai
How to auto-hide an object on skin if window is smaller than 800px
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Kai,
Select the visible logic block:
Then add:
So when the player width is equal to and less than 800, visible false.
You can do the same with the scale logic block
As an example under the scale logic block:
Player Width, <= 1024, scale 0.8
Then under the visible logic block hide it at 800.
Sp at 1024 width it scales then at 800 it hides.
Regards,
Hopki
Select the visible logic block:
Then add:
So when the player width is equal to and less than 800, visible false.
You can do the same with the scale logic block
As an example under the scale logic block:
Player Width, <= 1024, scale 0.8
Then under the visible logic block hide it at 800.
Sp at 1024 width it scales then at 800 it hides.
Regards,
Hopki
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/
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/