Sceneform-android-sdk: How to remove pinch (scale) listener from TransformableNode?

Created on 20 Aug 2018  路  3Comments  路  Source: google-ar/sceneform-android-sdk

The question above

question

Most helpful comment

Or
//Kotlin
transformableNode.scaleController.isEnabled = false

//Java
transformableNode.getScaleController().setEnabled(false)

All 3 comments

Sorry, i close the question. Simply extend BaseTransformableNode and do not add ScaleController.

You can also do the following:

TransformableNode tansformableNode = new TransformableNode(arFragment.getTransformationSystem());
tansformableNode.getScaleController().setSensitivity(0);

Or
//Kotlin
transformableNode.scaleController.isEnabled = false

//Java
transformableNode.getScaleController().setEnabled(false)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ArcherN9 picture ArcherN9  路  4Comments

terezo picture terezo  路  3Comments

yashvv picture yashvv  路  3Comments

scolar picture scolar  路  4Comments

JessHolle picture JessHolle  路  3Comments