if(Input.GetMouseButtonDown(1))
{
GameObject InventoryItem = EventSystem.current.currentSelectedGameObject; //null
}
When I select a UI button with RMB the current selected gameobject return null
but when its LMB it doesn’t???
if(Input.GetMouseButtonDown(1))
{
GameObject InventoryItem = EventSystem.current.currentSelectedGameObject; //null
}
When I select a UI button with RMB the current selected gameobject return null
but when its LMB it doesn’t???
if(mouse 2)) i think is what you want