How can i add a 2dView having text in ARkit scene iOS.How can i add that view in top of a node that won't rotate when we rotate the node.
How can i add a 2dView having text in ARkit scene iOS.How can i add that view in top of a node that won't rotate when we rotate the node.
Probably worth mentioning that you can also use a couple of other things for contents... A list can be found here... https://developer.apple.com/documentation/scenekit/scnmaterialproperty/1395372-contents
I tried the code from the answer above and it worked fine, but was slowing down my FPS because I have many nodes that need it. And the SKScene is probable quite heavy.
I was able to use an SKView with a SKLabelNode but the problem was that the text would not update visually, My guess would be that I would have to call texture(from:) every time and I figured that would be just as slow SKView texture(from:) https://developer.apple.com/documentation/spritekit/skview/1520114-texture
I saw another way to do it with a CALayer but thought id have the same problem with changing text so I just went with SCNText.
Also worth mentioning SCNBillboardConstraint as an alternative to LookatConstraint https://developer.apple.com/documentation/scenekit/scnbillboardconstraint