olexale / arkit_flutter_plugin

ARKit Flutter Plugin
MIT License
797 stars 225 forks source link

add isHidden property to ARKit Node class #98

Closed mochetti closed 4 years ago

mochetti commented 4 years ago

Hey there,

I have been using the remove(node) and add(node) ARKitController's functions to erase the node when it's not tracked, but it started to delay a little when working with multiple nodes. There is a isHidden property in the SCNNode class, which I figured would solve the problem. It simply does not render the node, instead of deleting it. It's implemented using the ValueNotifierConverter() but I am not sure it is the best approach. Please point me in the right direction if you may.

Regards, Mochetti

olexale commented 4 years ago

Hi @mochetti, Everything looks awesome!! Thank you so much for this contribution!