I have a lot of meshes on my scene and i need to click on them and get name of clicked mesh to insert in uri. What is the best way to do this?
p.s. it’s not a good idea for me, creating a blueprint class with references to each one of this objects, because it is possible to add new meshes in future.
Ideally you want to create a blueprint class with a static mesh component attached to it. That way you can set it up so when people click the blueprint actor (or the static mesh component), they can get the name of the mesh.
Using a blueprint also gives you access to the OnClicked Event, which is what you need to get the name of the clicked mesh.