How would I lock & hide the cursor during runtime after closing the Inventory UI using the "X" button at the top right?
I've created a variable bool for when the inventory is Open / Closed according to the action options in Game Creator.
So I can press "I" to open the inventory and again to close it, which works peachy using the "change cursor parameters" actions.
It doesn't work when I use the mouse on the UI "X" button to close it.
I believe I will need to either:
A. find a way to set my global bool variable inside the InventoryRPG prefab by referencing it within the InventoryUIManager script (i wouldn't know where to begin with this)
B. write a few lines of code inside the InventoryUIManager script alongside the "is.Open" or "changeState" functions (I don't know how to code that well yet)
Maybe there's an easier way I'm missing? I suppose the easiest way would be to get rid of any clickable close buttons in all UI, but I feel like I'll have to figure it out at some point.
Customer support service by UserEcho