Hello!
I have a problem with tooltips in my game. They work perfectly fine when I test them on my PC, but when tested on phone nothing happens.

That’s how I’ve done it. Do you have any idea how to fix it? Thanks!
Hello!
I have a problem with tooltips in my game. They work perfectly fine when I test them on my PC, but when tested on phone nothing happens.
That’s how I’ve done it. Do you have any idea how to fix it? Thanks!
Is there a reason why you’re not doing it the traditional way:
The TooltipBox
should not be created upfront, let the tooltip system maintain the lifecycle. Expose the necessary text variables, they can be bound to the pertinent text fields. Polling every frame is OK here since we’re showing a single widget at a time. You wouldn’t even need to flag text fields as variables or fire any additional logic.
And, in a more complex scenario where you have many tooltip classes, the widget showing one can store the class variable and create the correct tooltip.
Perhaps that’s what is messing it up?