So I know you can have a transparent background with Sprite Kit by setting AllowsTransparency to true on the View and setting a clear background on the Scene:
var view = new SKView()
{
ShowsFPS = true,
ShowsNodeCount = true,
ShowsDrawCount = true,
Frame = View.Frame,
AllowsTransparency = true
};
var scene = new SKScene(View.Bounds.Size)
{
BackgroundColor = NSColor.Clear
};
Now if I draw an image on the scene is it possible to make only that image clickable and the background click through? (Essentially a custom shaped Sprite Kit View)
UPDATE: The image in the scene is a sprite that is animating with textures so the size of the SKView would have to change per frame I suppose.
Als the SKView is in a Window that has a NSWindowsStyle of Borderless and a background color of clear (So basically you can't see the window or click on it, however you can click on the ui elements on the window). So really all you see is the Sprite animating but because the SKView is rectangular you cant click through the transparent areas around the sprite.