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

前端 未结 4 1144
日久生厌
日久生厌 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:20

    As @Toyos said above, you can use

    scnView.overlaySKScene = aSKScene
    

    to superimpose the SKScene on your SCNView.

    However, when I tried this in Swift, I found that the overlaySKScene property only becomes visible if you include an import SpriteKit statement.

提交回复
热议问题