是否有可能获得SCNView的屏幕截图?我正在尝试下面的代码,但它总是出来白...
NSRect bounds = [window.contentView bounds];
NSImage *screenshot = [[NSImage alloc] initWithData:[window.contentView dataWithPDFInsideRect:bounds]];
Run Code Online (Sandbox Code Playgroud)
当视图是标准NSView时,它工作正常...
scenekit ×1