I just started with UE5, because I have a project that I want to create in it, but I’m a bit clueless with a few things.
I want to create a 2D menu for a project with apartment buildings, where I could enter apartment parameters and if any of the apartments in the project would fit the parameters, they’d turn green.
So where I am clueless is if there is any way, that I could add custom parameters to group of objects (which would be the apartment), like for example: 3 rooms, 60m2, 3rd floor, … .
And would I achieve the search function with “if, then”?
I was searching for something similar in tutorials but I haven’t found anything yet, so any help would be greatly appreciated.
There are a few ways you can achieve this. Could you describe more about how you are putting your blueprints together? Do you have anything started that you can share with us? For example, are you using a blueprint for your buildings that you can create variables for?
In the meantime, here are some resources that should help get you started:
Any additional specifics or information you provide will go a long way in solving your problem!
Basically I want to have this kind of menu where once you click on the “1st” button, the cube that’s on the base (1st) floor will be highlighted in color and if you click “2nd” button the cube above it would be highlighted.
So this is just a base principle which I would like to make more complex, like you could select “1st floor + 2rooms + …” (multiple parameters).
Closest tutorial to what I need that I have found is this one:
but instead of looking at the object I need to highlight it by selecting the buttons and that is what I don’t know how to set up.
How do I give custom parameters to the objects and which function would search for those parameters to highlight the objects that match the selected parameters.
@XenThazor you already have all of the needed code in the apartments project. It’s based on tags.
If you want it on ui then just add specific tags to buttons and toggle them. Then gather all tags from on buttons and compare them to the tags present in the actors (like in my project) and gather a list of actors that comply with the list (also already in the project)
Oh, I’m soory,
First time I opened it was empty so I didn’t think about it. I had to move it to my UE folder for it to work. I just started with UE so I am still figuring things out.
Could you please help me a little bit with explaining how it works?
Where can I find the parameters for each room so I can then search for them?
Each apartment actor has it’s own tags. Select the cube actors in the scene and in their details panel (default to the right side of the screen) in the search area type in tag.
This should filter the tag parameters for the object. You can add in your own tags per apartment instance.
On play (in game) when you type in the input field it will filter out apartments that match your string of characters (using spaces as separators)