GLTFUtility 项目使用教程
GLTFUtilitySimple GLTF importer for Unity项目地址:https://gitcode.com/gh_mirrors/gl/GLTFUtility
1. 项目的目录结构及介绍
GLTFUtility 项目的目录结构如下:
GLTFUtility/
├── Assets/
│ ├── Materials/
│ ├── Plugins/
│ ├── Scripts/
│ └── Submodules/
├── LICENSE
├── README.md
├── editorconfig
├── gitignore
├── package.json
└── GLTFUtility.asmdef
目录结构介绍
- Assets/: 包含项目的主要资源文件,如材质、插件和脚本。
- Materials/: 存放项目的材质文件。
- Plugins/: 存放项目的插件文件。
- Scripts/: 存放项目的脚本文件。
- Submodules/: 存放项目的子模块文件。
- LICENSE: 项目的许可证文件。
- README.md: 项目的说明文档。
- editorconfig: 编辑器配置文件。
- gitignore: Git 忽略文件配置。
- package.json: 项目的包配置文件。
- GLTFUtility.asmdef: 项目的程序集定义文件。
2. 项目的启动文件介绍
GLTFUtility 项目的启动文件主要是 GLTFUtility.asmdef
文件。该文件定义了项目的程序集,确保项目中的脚本能够正确编译和运行。
GLTFUtility.asmdef 文件介绍
{
"name": "GLTFUtility",
"rootNamespace": "",
"references": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
- name: 程序集的名称。
- rootNamespace: 根命名空间。
- references: 引用的其他程序集。
- includePlatforms: 包含的平台。
- excludePlatforms: 排除的平台。
- allowUnsafeCode: 是否允许不安全的代码。
- overrideReferences: 是否覆盖引用。
- precompiledReferences: 预编译的引用。
- autoReferenced: 是否自动引用。
- defineConstraints: 定义约束。
- versionDefines: 版本定义。
- noEngineReferences: 是否不引用引擎。
3. 项目的配置文件介绍
GLTFUtility 项目的主要配置文件是 package.json
文件。该文件定义了项目的依赖和版本信息。
package.json 文件介绍
{
"name": "com.siccity.gltfutility",
"version": "1.0.0",
"displayName": "GLTFUtility",
"description": "Simple GLTF importer for Unity",
"unity": "2018.3",
"dependencies": {},
"keywords": [
"gltf",
"importer",
"utility"
],
"author": {
"name": "Siccity",
"url": "https://github.com/Siccity/GLTFUtility"
}
}
- name: 包的名称。
- version: 包的版本。
- displayName: 包的显示名称。
- description: 包的描述。
- unity: 支持的 Unity 版本。
- dependencies: 依赖的其他包。
- keywords: 关键词。
- author: 作者信息。
以上是 GLTFUtility 项目的基本使用教程,涵盖了项目的目录结构、启动文件和配置文件的介绍。希望对您有所帮助。
GLTFUtilitySimple GLTF importer for Unity项目地址:https://gitcode.com/gh_mirrors/gl/GLTFUtility