Hi boys you can help me: have I created a script that when the cursor passes above an object with trigger appear a canvas but whit is the method that I must adopt for doing for disappear it when it goes out of the trigger? Thans to all
Public Canvas mycanvas;
{
Void OnMouseOver() {
My canvas. SetActive =true
}
}
It’s doesn’t really matter in small scale projects and using the OnMouse is alot more begginer friendly.
the way you do is is cast a ray from the mouse screen position, look at what you hit and have you own logic from there.
the reason is not having scripts on many objects in the scene, as LOTR said, one to rule them all