You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to have a working sample of the use of ViewNode2? It seems the code below almost works but it stops here because the texture stream is never updated.
overridefunonViewCreated(view:View, savedInstanceState:Bundle?) {
super.onViewCreated(view, savedInstanceState)
val sceneView:SceneView= view.findViewById(R.id.sceneView)
val windowManager =SceneView.createViewNodeManager(requireContext())
sceneView.lifecycle = lifecycle
sceneView.viewNodeWindowManager = windowManager
val textView =TextView(context).apply {
text ="Foobar"
setTextColor(Color.BLACK)
setBackgroundColor(Color.WHITE)
}
val node =ViewNode2(sceneView.engine, windowManager, sceneView.materialLoader, textView)
sceneView.addChildNode(node)
node.position =Float3(0f, 0f, -1f)
}
The text was updated successfully, but these errors were encountered:
Hello,
Is it possible to have a working sample of the use of
ViewNode2
? It seems the code below almost works but it stops here because the texture stream is never updated.The text was updated successfully, but these errors were encountered: