How do I create a HUD on top of my Scenekit.scene

前端 未结 4 1075
日久生厌
日久生厌 2021-02-08 03:05

I\'m experimenting with Swift and Scenekit. Building a Mac OS X app. It seems quite easy to get a 3d-scene working. But what is scene without some kind of 2D hi-score, radar dis

4条回答
  •  情歌与酒
    2021-02-08 03:14

    try

    scnView.overlaySKScene = aSKScene;
    

    (see SCNSceneRenderer.h) This is the recommended way. An alternative way is to make the SCNView layer backed and add child views or layers (but this is less efficient).

提交回复
热议问题