Helps simplify the system for hiding building floors and showing their layout

I need help simplifying a system where I press a button and the floor is hidden to show the layout. This system is very simple, but I needed to create a BP actor for each floor and set up a giant system of nodes to hide the selected floor and all the ones above it, while the ones below are visible.
I would like to know if there is a mesh index system, where I can combine all the floors into a single BP actor and use this index system to configure the visible and non-visible floors. Could anyone help me with something similar? Follow the images of what I thought and the complexity of the nodes I made.





1 Like

I think it’s because you’re trying to control the system from a central point. It would work much better if all the blueprints had the same ‘show/hide’ code, and a floor number.

Then, you can say ‘show higher than 3’, or something.

Then, you can control centrally, either using

or, you can use a dispatcher.

1 Like

this is amazing! How do I define the IDS for each floor? I’m a beginner and I still don’t know how to do this. If it’s not too much trouble, could you help me?

1 Like

It’s just an instance settable int

image

When you put the floor BP in the level, you set it

1 Like

I redid these steps but in my version it does not allow this connection. How did you get?

1 Like

You always have to make the nodes on the right, by dragging from the ones on the left. You can ‘re-use’ nodes.

Just drag from ‘array elment’ and search for ‘show higher than’ ( or whatever you called the event ).

1 Like

Thank you, it worked perfectly!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.