Hello,
I am struggling with control schematics regarding my UI.
I am building an RPG game with an inventory system. Inventory itself works beautifully.
I want to have the “Inspect” screen, invokable from Inventory, something like in Borderlands that enables you to inspect a weapon in detail - it’s basically overlay over Inventory.
I would like for Inventory to be visible behind the inspect screen, but problem is that ScrollRect and GridLayout components underneath are still reacting to my mouse clicks and drags, even though the entire Inventory panel is under a gameobject which has CanvasGroup, and disabled Interactable property (when Inspect screen is active.
Example:
Inventory alone:
With Inspect screen invoked I can still scroll the inventory behind it:
And I can still drag’n’drop inventory items:
Now to be fair, I cannot click the buttons on the inventory, so that part is working, but why is there still control on ScrollRect, and drag events?
How do I display a full canvas BUT disable it’s interactivity?
To be noted, the Inspect screen is entire seperate canvas and camera setup. Should I perhaps make Inspect screen a child of Inventory screen, and have it block raycasts? Would that disable the Inventory interactivity?