giandifra / arcore_flutter_plugin

Flutter plugin for ARCore SDK, Android platform to build new augmented reality experiences
MIT License
435 stars 280 forks source link

Cannot use removeNode in Augmented Image mode #232

Open aodreamer opened 4 months ago

aodreamer commented 4 months ago

I cannot delete objects that spawn using the removeNode function in ArCoreView of type Augmented Image. Here is my code:

ArCoreView( onArCoreViewCreated: _onArCoreViewCreated, type: ArCoreViewType.AUGMENTEDIMAGES, enableTapRecognizer: true, enablePlaneRenderer: true, ), ... void deleteNode(List names) async { for (String name in names) { print(name); // I use this for debugging arCoreController?.removeNode(nodeName: name); } } ...

deleteNode(modelName);