This is i created the teleport blueprint Actor
Everynone
(Everynone)
February 1, 2024, 11:48am
2
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.
Everynone
(Everynone)
February 1, 2024, 12:03pm
4
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:
In computer science, a trie (/ˈtraɪ/, /ˈtriː/), also called digital tree or prefix tree, is a type of k-ary search tree, a tree data structure used for locating specific keys from within a set. These keys are most often strings, with links between nodes defined not by the entire key, but by individual characters. In order to access a key (to recover its value, change it, or remove it), the trie is traversed depth-first, following the links between nodes, which represent each character in the k
“I am a beginner and would like to create something similar with the teleport actor.”
Everynone
(Everynone)
February 1, 2024, 12:13pm
6
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.