Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Determining SpriteKit Interaction using SKRenderer

Hey,

Wondering how other developers have been able to determine the location of a mouse event or tap (ie NSEvent) when using MetalView (MKTView) with SKRenderer with a SpriteKit scene (.sks scene) for a 2D game.

In the original scenario with SpriteKit, we could use SKViews convertPoint(fromView:) to determine where in the scene the user tapped. But with the SKRenderer we can no longer use convertPoint(fromView:) as its reliant on SKView being used and thus its making it difficult to determine.

What I do have is:

locationInWindow: NSPoint for showing me where in the MKTView which was touched

Any ideas, would be great

Many thanks

Determining SpriteKit Interaction using SKRenderer
 
 
Q