How to Add Teleport Actor Inside Search Bar

Teleport


This is i created the teleport blueprint Actor

Could you clarify what is needed:

  • we have several teleport locations in the world, they are actors
  • we have a widget with a scroll box showing those locations
  • we choose a location from the scroll box with mouse
  • we then click teleport and the camera goes to that location

How close am I?

“click teleport and the camera goes to that location”
This Working Fine. But I need Searching Function bar for Teleport Actor
Thank You.

How to create a search algorithm depends on how you identify the actors you’re looking for for. This can be done in many ways. So, how do you do it?


Consider look into how substrings work:

This would be the first step to creating a granular filter and displaying a trimmed list.


If you need something more nuanced:

“I am a beginner and would like to create something similar with the teleport actor.”

The tut is using substrings I mentioned above. What’s wrong with it? Do note that we know absolutely nothing about how things work on your end - not sure what your expectations are.

  • ensure your actors have IDs that can be looked up - substrings could work OK
  • loop through the array of scrollbox children; when matching strings are found, add those widgets to an array
  • clear the scroll box, repopulate with the filtered array

That’s the gist.