What is needed for the Enable Drag to work? I am hoping it's possible to drag an attack or ability directly onto an enemy. When I do, nothing happens. However, I can drag the attack or ability onto the Enemy's GUI box from the turn order HUD.
Usually that should work - if it's not working, there is most likely something in the way that interferes with the raycast used to find a target for the drop.
This can be a GUI box (non-combatant/turn order HUDs usually don't interfere with it), a trigger that's not on the Ignore Raycast layer or other game objects.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Thank you for the help. I have tried it in the ORK DEMO project but still cannot get it to work. Do the enemy combatants need a special component or collider?
It's working for me. As long as the combatant's prefab has a collider or character controller (to be able to get hit by the raycast) and isn't set to the Ignore Raycast layer, and nothing is in the way, a drop should be received.
Of course, dropping stuff on them will also take into account if the attack, ability or item can be used (e.g. use costs, range, etc.).
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
This can be a GUI box (non-combatant/turn order HUDs usually don't interfere with it), a trigger that's not on the Ignore Raycast layer or other game objects.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Of course, dropping stuff on them will also take into account if the attack, ability or item can be used (e.g. use costs, range, etc.).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
https://dl.dropboxusercontent.com/u/12844541/2.jpg
https://dl.dropboxusercontent.com/u/12844541/3.jpg
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!