Forum Discussion
DeanLodes-a0bc2
7 years agoCommunity Member
Drag and Drop Issue - How to disable drop targets
I am creating a fraction game where the player is dealt a card and can choose where to place the card. I disable the card once it is dropped because the player is not suppose to move the card after ...
GillianDelvigne
Community Member
I found a band-aid solution which is :
1) Create a "deleted" state for your drop target and you delete the element from the scene in this state.
2) tell your drop target to switch to deleted state when your correct item is dropped inside. So your drop target will no longer display and would be disabled.
3) If your drop target had a specific shape you can tell by a trigger to display a fake drop target instead of the active one when the other one switch to deleted state.
It need more work, but in my case it is less tedious to set up.
Hope this will help you too.
Crystal-Horn
7 years agoStaff
Thank you, Gillian, for the update!