Jump to content

Use dragBehavior with instance


Recommended Posts

For performance issues I'm working with instance of mesh in my current project.
Currently to use highlight when i select a mesh with the pointer I disable the instance and clone the original mesh but only to use the highlightlayer. I call it the selectionMesh.

However I also want to drag the selectionMesh by adding a pointerDragBehavior to it but the selection (and the creation of the SelectionMesh) starts when the pointer is down.
What I want is when i click on the instance i create the selectionMesh, disable the instance, add the behavior to the mesh AND start the dragging. 
Currently I must click once to the instance to create the selectionMesh and then click another time to start the dragging which is not what I need.

Any suggestion ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...