setAnchor causes all nodes and their children to get enabled by default? #318
-
Hello, in my current application, I sometimes disable some nodes that are children of an anchor node. The anchor, belonging to the anchor node, can then be hosted using the following code:
I notice that the setAnchor method causes not just the anchor node but all its children to get enabled by default which means that the items the user disables in my app, will show up all of a sudden when the anchor starts hosting. The way that I dealt with it was to check whether certain nodes were set to disable or not by the user and then perform the necessary action if the node was enabled when it was supposed to be disabled. However, I was wondering what exactly is the intuition behind enabling the anchor node and its children whenever the setAnchor method is called with the anchor node as its argument. For reference, I am linking to the relevant code segment from Sceneform. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi! |
Beta Was this translation helpful? Give feedback.
-
What is sure is that we removed this behavior from SceneView-android. But I can't remember why it was there. |
Beta Was this translation helpful? Give feedback.
What is sure is that we removed this behavior from SceneView-android. But I can't remember why it was there.
Couldn't you make your nodes invisible instead of disable?