We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Unbind (remove) Drag Event

Home Forums General Questions Unbind (remove) Drag Event

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16962
    Sargento
    Participant

    Hello
    I’m trying to do a drag-n-drop puzzle game.
    I’ve created some draggable pieces and test the position when released ( dropped ). When the pieces are in place they aren’t draggable anymore.
    That works fine with conditionals, but when I try to orbit the camera and the mouse pointer is over a piece in final place (that used to be draggable), the camera doesn’t orbit.

    I need to remove the drag event to those pieces in place for the camera to orbit as usual even when click and drag over a piece in final position.

    One solution could be creating hidden instances ( in final place ) for each piece of the puzzle. Hide the draggable pieces once in place and show the piece in final place.
    This is: hide the draggable piece once in correct place and show the instance to avoid the draggable piece blocks the camera orbiting behaviour.

    It’s a little difficult to explain. Hope you understand my needs.

    #16986

    Hi,

    At the moment there is no way to remove assigned events from objects. I think we’ll consider adding corresponding puzzles in the future.

    Meanwhile you can use the method you suggested – I believe it should work.

    Chief 3D Verger | LinkedIn | Twitter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.