I'm new to SceneKit and I'm just curious as to what is the proper way of creating (let alone using) the .scnassets resource catalog that gets created in the SceneKit game project template in Xcode.
I know I can create a folder and give it the .scnassets extension, but it doesn't seem "proper". Something tells me I've been pretty spoiled in the past.. Anyone?
A quick search on this SceneKit catalog has not yielded much.
An asset catalog, simply put, is a single folder in Xcode that you use to organize your app's images, icons, colors, and more. Instead of adding individual images to Xcode's file organizer, you add assets neatly organized in a single catalog. Asset catalogs also include metadata, for example about image scale.
If you don't already have an asset catalog in your project, you can create one by right-click on your project and choosing New File. From "iOS" choose "Resource" then Asset Catalog, then click Next and name your catalog. You can now select your new asset catalog in Xcode, and drag pictures directly into it.
An asset catalog is a type of file used to organize and manage different assets and image resolutions used by your app's user interface.
It seems as easy as create an assets catalog and change the extension to .scnassets before saving.
Xcode will ask if you really want to change the .xcassets standard extension.
xcode window
This is now available in three quick easy steps:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With