Cannot create a Screenshot of a SCNView

后端 未结 3 608
南笙
南笙 2020-12-17 03:46

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 bound         


        
3条回答
  •  执念已碎
    2020-12-17 04:23

    In OS X v10.10 and iOS 8, SCNView adds a snapshot method, so you can get an NSImage (or UIImage) out of it much more easily.

提交回复
热议问题