Im trying to simply display the name of an object as part of a pop-up UI situation. I have it to where the UI would display when you collide with a sphere collision around the object, and i have it set for the UI to get the objects name and display it. The problem is, these two outcomes are seperate, if that makes sense. The function i have in the Third Person Character blueprint is set to display the UI, but it displays it on the screen, instead of displaying the UI when colliding with the collision set around the object. Below is the code from a tutorial i followed that shows how to get the name from a seperate Blueprint Interface, and then send it to a Widget reference that i initiated up top using BeginPlay → Create Widget. When i continue from the Create Widget Node and add the “Add To Viewport” node, the correct UI displays, but It shows up on the screen, instead of using the Widget Component of a BP Actor… I hope this makes sense
Here is the code i have for the actual Item. I figured if i could reference the function from the Chracter BP, then that would pass the information to the Widget Component, but that doesnt seem to work…
This is the outcome. The UI that shows the name is tied to the screen, instead of tied to the object.