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!
Answer by Yukisaka · May 21, 2017 at 08:46 AM
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!
Your answer
Follow this Question
Related Questions
How load embedded .uxml or .uss resource into dll , 2 Answers
Non-interactive button still responds to event triggers 1 Answer
Stacking UI Text+Icon when collecting items based on Dynamic Template 0 Answers
Switching between mouse/keyboard and controller for UI navigation (using Input System) 0 Answers