But this makes the tooltip dissapear or just render like 0.1 seconds in the center of the scene (where is rendered if I don’t put the Update code) then gone. The other scripts to trigger the tooltip or show the text of tooltip works as normal if I delete the code of void Update().
The tutorial is this:
.
In this tutorial he explains that I have to deactivate the canvas raycaster to avoid flickering of the tooltip when the cursor is above UI elements, but I don’t even get that problem, the tooltip just disappears or render a few frames.
I tried to use Debug.Log to check the cursor position and everything looks normal.
In addition, if I activate the tooltip object in the inspector and I run the game, it goes away from the scene (before that I had it deactivated and deleting the Update code, its when everything works as normal):
This makes me think it’s a problem with the canvas (Tooltip Canvas in the Hierarchy).
But I have no idea, I already did the whole tutorial step by step.
Any idea if the problem is the project or some configuration?
I noticed that I had to put the canvas in Screen Space - Overlay, the tooltip was using the space of the canvas in this mode despite the canvas was in Screen Space - Camera.