How to put text on top of node in scenekit?

A really simple question, which for some reason I can’t find anywhere. How to write 2D text on a three-dimensional face SCNNode? For example, something like this:

let geo = SCNBox(width: 20, height: 20, length: 20, chamferRadius: 0.0);
//geo.writeFace(postion, text)
let box = SCNNode(geometry: geo);

Of course, the comment is made up. Anything like this?

+4
source share
1 answer

, . UVW Scene Kit, . . SCN, , SCNBox /.

2D- UIKit Sprite Kit textureToNode:  https://developer.apple.com/reference/spritekit/skview/1520114-texturefromnode?language=objc

+5

Source: https://habr.com/ru/post/1655498/


All Articles