资源构建失败是因为资源集合中包含了 AssemblyDefinitionAsset,并且 StreamingAssets 文件夹的创建行为间歇性出现。 此更改移除了资源打包输入中的脚本相关条目,并保留了跟踪的 StreamingAssets 支架文件,使得包输出可以重新生成而不会触发元/文件夹不匹配警告。 限制:Unity/UGF 打包不能在 AssetBundles 中包含 AssemblyDefinitionAsset 限制:StreamingAssets 内容应保持被忽略,而文件夹身份仍被追踪 禁止:保留脚本资源并依赖平台标识 | bundle 包包含 Editor-only 对象 可信:高 范围风险:狭窄 可逆性:干净 指令:不要将 .asmdef/.cs 资产添加到 ResourceCollection 中;只有 runtime 资产才能进入 bundle 测试:资源构建器打包运行完成,且没有之前的两个错误
94 lines
1.5 KiB
Plaintext
94 lines
1.5 KiB
Plaintext
# This .gitignore file should be placed at the root of your Unity project directory
|
|
#
|
|
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
|
|
#
|
|
.utmp/
|
|
/[Ll]ibrary/
|
|
/[Tt]emp/
|
|
/[Oo]bj/
|
|
/[Bb]uild/
|
|
/[Bb]uilds/
|
|
/[Ll]ogs/
|
|
/[Uu]ser[Ss]ettings/
|
|
*.log
|
|
|
|
# MemoryCaptures can get excessive in size.
|
|
# They also could contain extremely sensitive data
|
|
/[Mm]emoryCaptures/
|
|
|
|
# Recordings can get excessive in size
|
|
/[Rr]ecordings/
|
|
|
|
# Uncomment this line if you wish to ignore the asset store tools plugin
|
|
# /[Aa]ssets/AssetStoreTools*
|
|
|
|
# Autogenerated Jetbrains Rider plugin
|
|
/[Aa]ssets/Plugins/Editor/JetBrains*
|
|
|
|
# Visual Studio cache directory
|
|
.vs/
|
|
|
|
# Rider cache directory
|
|
.idea/
|
|
*.iml
|
|
cmake-build-*/
|
|
|
|
# Gradle cache directory
|
|
.gradle/
|
|
|
|
# Autogenerated VS/MD/Consulo solution and project files
|
|
ExportedObj/
|
|
.consulo/
|
|
*.csproj
|
|
*.unityproj
|
|
*.sln
|
|
*.suo
|
|
*.tmp
|
|
*.user
|
|
*.userprefs
|
|
*.pidb
|
|
*.booproj
|
|
*.svd
|
|
*.pdb
|
|
*.mdb
|
|
*.opendb
|
|
*.VC.db
|
|
|
|
# Unity3D generated meta files
|
|
*.pidb.meta
|
|
*.pdb.meta
|
|
*.mdb.meta
|
|
|
|
# Unity3D generated file on crash reports
|
|
sysinfo.txt
|
|
|
|
# Builds
|
|
*.apk
|
|
*.aab
|
|
*.unitypackage
|
|
*.unitypackage.meta
|
|
*.app
|
|
|
|
# Crashlytics generated file
|
|
crashlytics-build.properties
|
|
|
|
# Packed Addressables
|
|
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*
|
|
|
|
/Assets/StreamingAssets/**
|
|
!/Assets/StreamingAssets/.gitkeep
|
|
!/Assets/StreamingAssets.meta
|
|
|
|
/UI参考
|
|
/bin
|
|
/docs/screenshot
|
|
*.xmind
|
|
/数据表/__pycache__/
|
|
/类吸血鬼项目.md
|
|
|
|
~$*.xlsx
|
|
Assets/GameMain/Configs/ResourceBuilder.xml
|
|
/.dotnet
|
|
/.omx
|
|
/.vscode
|