In this simple example if you comment this line :
utilityLayerRenderer.utilityLayerScene.addMesh(mesh);
pointerDragBehavior will works.
But if the mesh is added to utilityLayer pointerDragBehavior will be not trigger.
And I don’t find a function to add the pointerDragBehavior to utilityLayer, something like utilityLayerScene.addBehavior
Seems to work correctly when the sphere is created with the scene
paremeter set to the utility layer’s scene.
Example:
This works well even when importing SceneLoader meshes, so avoid using utilityrenderscene.addmesh(), and import directly into the utility render scene.
I thought addMesh() changed the mesh scene.
But it seems that by using addMesh() the mesh is present in both scenes.
Thanks for your help.
1 Like