sceneview-android icon indicating copy to clipboard operation
sceneview-android copied to clipboard

How to disable user interactions?

Open ilslv9 opened this issue 1 year ago • 1 comments

Hi, I'm working on a project which uses SceneView. We want to find a way how to block user interactions with the view to have a fixed projection of 3D model. Is there any API or preferable way to do it? Unfortunately, we didn't find a way in API to do so and as a workaround we use view.setOnTouchListener { _, _ -> true }

ilslv9 avatar Dec 05 '23 13:12 ilslv9

By default, when you position a modelNode in the scene, it has the isEditable and isTouchable properties set to true, it would be enough to set them to false when creating the model

ModelNode Class

devR2id avatar Feb 27 '24 23:02 devR2id