在 xcode 中创建 scnassets 目录的正确方法是什么

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27191167/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:16:43  来源:igfitidea点击:

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

xcodescenekit

提问by HymanyJohnson

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.

我是 SceneKit 的新手,我只是想知道在 Xcode 的 SceneKit 游戏项目模板中创建(更不用说使用).scnassets 资源目录的正确方法是什么。

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?

我知道我可以创建一个文件夹并为其指定 .scnassets 扩展名,但它似乎不“正确”。有人告诉我我过去被宠坏了..有人吗?

A quick search on this SceneKit catalog has not yielded much.

对这个 SceneKit 目录的快速搜索并没有产生多少结果。

回答by Zenón JHF

It seems as easy as create an assets catalog and change the extension to .scnassets before saving.

看起来就像创建一个资产目录并在保存之前将扩展名更改为 .scnassets 一样简单。

Xcode will ask if you really want to change the .xcassets standard extension.

Xcode 会询问您是否真的要更改 .xcassets 标准扩展名。

xcode window

窗口

回答by Michael McQuade

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
  1. 选择文件 > 新建 > 文件(或?+ N
  2. 选择 SceneKit 目录 在此处输入图片说明
  3. 选择一个名字

回答by giovannipds

Create an Assets Catalog with the name "Your Name.scnassets", Xcode will ask you if you're sure then you just need to confirm that. (Xcode 9.4.1+)

创建一个名为“Your Name.scnassets”的资产目录,Xcode 会询问你是否确定,然后你只需要确认。( Xcode 9.4.1+)