Forcing interaction with a gameobject

Hi everyone!

I don’t know how i should search for my ‘problem’, so i tought i just make my own question. I’m making my first game (its almost only gui, since its an incremental / idle game) and up till now i found everything i needed.

I want to force the player to interact with a GameObject, while the other GameObjects are not interacteable. My toughts were to just set interactable from all other GameObject to false and after interaction setting it back to true.

Is there a easier / better way or is my approach even correct?

Thanks!

If anyone is interested: My solution was to just put a transparent panel over all gameobjects and put my gameobject i want forced interaction with as a children in that panel. Worked out fine!