Hello, I’m doing Archviz Project. So, I was wondering is there anyone who can help me.
I have sliders to filter apartments by area, cost etc. The main problem here is, how to connect those sliders with apartments (glowing cubes)? So, when those cubes aren’t suit filter, they disappear.
This example is ‘quick and dirty’ - primarily because of the ‘get all actors of class’ that’s firing on every tick while the ‘On Value Changed’ event is happening. (Probably ok for up to several thousand apartments, but if there is other logic on this chain it would be a performance concern, a better practice would be to cache an array of apartments and just loop through those)
Then the apartment itself decides whether or not to show itself.
This also abuses the tick function (there is no reason to evaluate this every frame) - but hopefully this serves as one (of many) examples of how this could be structured.
For an example that is much more aligned with best practices check out this video.