Good Evening
Can someone please give me a Tip on how to do that? I tried Input.mousePosition but the Panel follows the mouse, I want it to stay at its Position. I just cant get it to work.
Good Evening
Can someone please give me a Tip on how to do that? I tried Input.mousePosition but the Panel follows the mouse, I want it to stay at its Position. I just cant get it to work.
You could try adding a EventTrigger to your object, and using the Mouse Over/Pointer Enter attribute, then attach a script to that attribute that will show your panel.
Good morning
Thank you Dibbie. Hmm but that is not quite what I want. I want it to Show always on Mouse Position and stay.
Like a Rightclick Menu. It Shows up when you Rightclick on the Canvas and stays.
So you just want to show a panel where it is when you mouse over a button?
You can use A Raycast or OnMouseOver().
Once you are over that button, just set the panel to active
public GameObject PanelToShow;
void OnMouseOver()
{
PanelToShow.SetActive(true);
}
else
{
PanelToShow.SetActive(false);
}
hy,WITH which object i attach this script camera or panel ?