Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the proper way of creating an scnassets catalog in xcode

Tags:

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.

like image 397
JackyJohnson Avatar asked Nov 28 '14 14:11

JackyJohnson


People also ask

What is asset catalog in Xcode?

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.

How do I add an asset catalog in Xcode?

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.

What is an asset catalog?

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.


2 Answers

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

like image 99
Zenón JHF Avatar answered Sep 17 '22 10:09

Zenón JHF


This is now available in three quick easy steps:

  1. Choose File > New > File (or + N )
  2. Select SceneKit Catalog enter image description here
  3. Choose a name
like image 32
giraffesyo Avatar answered Sep 18 '22 10:09

giraffesyo