Is it possible to get a screenshot of an SCNView? I'm trying with the below code, but it always comes out white...
NSRect bounds = [window.contentView bounds];
NSImage *screenshot = [[NSImage alloc] initWithData:[window.contentView dataWithPDFInsideRect:bounds]];
It works fine when the view is a standard NSView...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…