Hi, I'm not very smart and as there aren't a lot of tutorials for tooltip on NGUI, I'm trying to figure this out myself but failed.
First off, I'm not sure if I'm correct with the code.
void OnTooltip(bool show)
{
if (show) {
UITooltip.ShowText("Tooltip");
}
else {
UITooltip.Hide();
}
}
I have this script attached to a GUI object with a box collider and it shows the tooltip and the background normally IF I have the pivot set to default, at the middle.
If I set the pivot to the top left for the label and the background, the background becomes a small dot on the top left of the label's position, but the label remains in the middle of the mouse cursor instead of being at the bottom right of the mouse cursor.
I apologize for my poor English, I hope someone could understand and tell me what I'm doing wrong, thanks.
Here's an image what I did.
