Logic Blocks Block

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Mark360
Posts: 38
Joined: Thu May 17, 2018 11:15 pm
Location: England and USA

Logic Blocks Block

Post by Mark360 » Thu May 24, 2018 12:23 pm

I have 2 sets of images.

1 set shows for screen size 1024 to 800

the 2nd set below 800.

I can get one set to show or the other but not both. so if it shows on mobiles no image on desktop and versa.

The logic blocks control the items in the container in both instances. What am I missing?
Attachments
logic block mobiles.PNG
logic block mobiles.PNG (31.56 KiB) Viewed 147 times
logic Block desktop.PNG
logic Block desktop.PNG (41.88 KiB) Viewed 147 times
If it looks impossible you just have not found the right angle to view it from.

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

Re: Logic Blocks Block

Post by Hopki » Sat May 26, 2018 1:07 am

Hi Mark,
The way logic blocks work is you have an expression that is made of conditions.
If you have more then one expression, then the first that meets the conditions is actioned and the following one is ignored.

In your second screen shot as an example your saying if the player is between 800 and 1024px then hide it.
It will not look at the Is Mobile expression as the firs is met so will stay hidden.

You need to make an expression where all conditions need to be met.
Example:
For image One: If the player is between 800 and 1024px AND is a mobile, Visible: true (its default will be hidden)
For image Two: If the player is between 800 and 1024px AND is not a mobile, Visible: true (its default will be hidden)

So the images will only show if the player is between 800 and 1024, but depending if being displayed on a mobile or not will determine if image one or two is displayed.
Regards,
Hopki

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests