How to create a scene file for ARKit?

2019-08-17 07:58发布

Inside the ARKit sample source code, I can see ".scn" [scene kit files]. I am wondering that how to create a new scene file? Let's say a coin scene?

Any website where I can download? or learn how to create one for my use?

1条回答
戒情不戒烟
2楼-- · 2019-08-17 08:13

You can create one from scratch in Xcode’s “New File” dialog. It’s a resource type (in the same area as GPX files). Chris Language’s book on building SceneKit games has a very nice section on using the Xcode Scene editor, the best documentation I’ve seen on that tool.

You can also use NSSecureCoding and archive an SCNScene that you’ve created programmatically. See SceneKit view is rendered backwards for sample code.

查看更多
登录 后发表回答