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
To create a HUD, do something like the following:
// SKContainerOverlay is a class which inherits from SKScene
SKContainerOverlay *skContainerOverlay = [[SKContainerOverlay alloc] initWithSize:self.sceneView.bounds.size];
self.sceneView.overlaySKScene = skContainerOverlay;
self.sceneView.overlaySKScene.hidden = NO;
self.sceneView.overlaySKScene.scaleMode = SKSceneScaleModeResizeFill; // Make sure SKScene bounds are the same as our SCNScene
self.sceneView.overlaySKScene.userInteractionEnabled = YES;
You can create all your SKLabelNode
objects inside the custom SKContainerOverlay
class.