i am trying to let a widget show in UE5 when the player looks at an object and i tried some blueprints but it seem like it is not working an example of what i am trying to do is in this video i found (min 6:08)
can you help with that please
thank you all
Without knowing what you’ve tried and done, there’s no way to help you out. But, do have a look at this post:
The communication in the example revolves around Inheritance + Interface - a potent combo, imho.
the base class implements the interface (which children inherit)
the widget uses the same interface - calls children receive can be propagated: Actor → Widget Component → Widget without casting or finding user widgets (this can be done in many ways, though)
the player has a collision sphere and sends an interface call to overlapped actors as we approach:
It’s a slightly more advanced example as it also highlights actors close to the controlled pawn. Perhaps you can reverse engineer it, the project is attached.
i found this method online but i couldn’t find a way around it to make a widget icon instead of object name .