Rearranging Inventory
I am trying to create a Realm of the Mad God style inventory system. I have the picking up from a bag and placing into the inventory or equipped slots. However, when I try to pick it up again the raycast target option in the image does not turn off, and when I turn it off manually nothing happens except the button on the inventory flashes.
I use a button to enable a script that disables that button and raycast target in the target image. This script also makes the object follow the mouse. On the inventory I have a button that when pressed turns on a script that sets the transform of the selected object to a panel in the Inventory Space. It also turns back on Raycast Target and the objects button. Both scripts disable the inventory button disables both scripts as well.
My problem is that the second time on an object that I use the movement script it does not turn off Raycast target.
Your answer
Follow this Question
Related Questions
IPointerExitHandler while holding click 0 Answers
Change the dropping prefab for each in-game drop 1 Answer
Canvas Inventory closing 0 Answers
Why is drag and drop not working? 1 Answer
Get object to check list for number of specific items 0 Answers