Archviz Explorer Unit POI toggle through Text Box

Hi,

I am trying to remove the Slider Widget in Unit Search and replace it with a Text Box Widget. Like I want to type the value I want and the Unit POI under that value in Data Table is highlighted.

I have added the Text Box but I dont know how to connect it with the value change.

I add the On Text Change event but after that i have tried to connect it to the already set functions of the slider widget but that doesnt work.

Thanks

This is one confusing post. :innocent:

  • what is Unit Search?
  • you say Slider but then you clearly mean Editable Text + On Text Change
  • what does this sentence mean:

I want to type the value I want and the Unit POI under that value in Data Table is highlighted

A DT is a static collection of data wrapped in structs you can only read values from.


Essentially, it’s unclear (to me) what is what and what needs doing. Please elaborate.

1 Like

Sorry for the unclear instructions.
I am working on an archviz project. I am using the Archviz Explorer Template.
I am attaching a picture to better explain.
As you can see there is an option to scroll through all the units available in a residential apartment complex. The floors are scrolled through a Slider. I want to replace that with a Text Box.

The slider’s OnValueChange is probably hooked up to the DT look up. Could you show that bit of the script and the bit you’re having issue with.


In short: instead of the slider scrubbing through whatever it scrubs, you’d rather type in a Name and retreive associated data from the table. Am I getting close?

1 Like

Yes. That is what I want. Instead of using the slider, I can just type in the Floor Number.


This is the Slider Widget event graph.
I added the Text Box but I am unable to change values like this Slider does.

So what exactly is stopping you from using:

You’re not sure know how to convert text to float or int? That’d be: textstringinteger:

image

Without knowing how the DT look up looks like or how the data is organised, can’t recommend anything more tangible.

1 Like

This is what the Data Table looks like

I did add the event On Text Change. But nothing changes when I input the text.

This is the problem I am facing. The target is Slider. When i try to attach the Text Box as a target, it says it is not compatible.

Thank you for your help.

The text you typed is output here:

As in my previous pic. You cannot connect those two the way you want because from the engine’s point of view, it makes no sense. A slider is not text.


Besides, a rule of thumb in UMG is to not query widgets for data, have them report it - that’s what delegates are for. Even this bit is already set up in a dodgy, potentially unsafe way:

image

If this is a part of the standard template, it’s kind of spooky. Epic not following what they preach? It’s all a tad weird since sliders directly support ranges so there’s no need for remapping to start with. Irrelevant here though since you want to get rid of it anyway… :sweat_smile:

Hi, which version you have? I have v2.1, but cannot find the floor slider. Can you help?