- Home /
How to turn on Raycast Target on Drag?
Hello guys,
I asked a couple days ago a question about my drag and drop system wich you can find here: https://answers.unity.com/questions/1475747/drag-and-drop-not-working-when-sprite-is-overlappi.html?childToView=1475751#answer-1475751
We solved the problem but because of the solution of the problem i now have another problem. If i turn of Rycast Target i can drag the sprites however i want but if i wanna drop them in another Drop Zone it cant detect the OnPointer Events because it is not a Raycast Target. I think a solution would be to only turn on Raycast when the object gets draged. But how should i do that?
Thank you for your help
Cryttexx
Your answer
Follow this Question
Related Questions
Drag and drop not working when sprite is overlapping with other objects. 1 Answer
Detecting onDrag over UI images 1 Answer
My unity image isn't showing up, what gives? 0 Answers
Convert UI element to world position 1 Answer
Moving images around 0 Answers