报错
Done importing asset: 'Assets/Scenes/Main/ReflectionProbe-2.exr' (target hash: '8ee1d750df8f19ef75e7274f3819d197') in 0.083441 seconds
Start importing Assets/Scenes/Main/ReflectionProbe-7.exr using Guid(1a4b12e711acdf049ac793123ce55f63) Importer(-1,00000000000000000000000000000000)
Could not create asset from Assets/Scenes/Main/ReflectionProbe-7.exr: Cube texture could not be created. Only Power of Two textures can be cubemaps.
(Filename: E:\unity\Editor/Src/AssetPipeline/TextureImporting/TextureImporter.cpp Line: 592)
控制台日志截图
-----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Unity.TextMeshPro.Editor.dll
Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.
Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Editor\TMP_PackageUtilities.cs(1008,84): error CS0103: The name 'VersionControlSettings' does not exist in the current context
Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Editor\TMP_PackageUtilities.cs(586,84): error CS0103: The name 'VersionControlSettings' does not exist in the current context
-----CompilerOutput:-stderr----------
-----EndCompilerOutput---------------
- Finished script compilation in 0.486516 seconds
Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Editor\TMP_PackageUtilities.cs(1008,84): error CS0103: The name 'VersionControlSettings' does not exist in the current context
Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Editor\TMP_PackageUtilities.cs(586,84): error CS0103: The name 'VersionControlSettings' does not exist in the current context
Refreshing native plugins compatible for Editor in 0.51 ms, found 2 plugins.
Preloading 0 native plugins for Editor in 0.00 ms.
RefreshInfo: InitialScriptRefreshV2(NoUpdateAssetOptions)
RefreshProfiler: Total: 2498.103ms
InvokeBeforeRefreshCallbacks: 0.556ms
ApplyChangesToAssetFolders: 0.033ms
WriteModifiedImportersToTextMetaFiles: 0.000ms
CleanLegacyArtifacts: 0.000ms
Scan: 194.060ms
OnSourceAssetsModified: 0.594ms
UnregisterDeletedAssets: 0.000ms
InitializeImportedAssetsSnapshot: 0.109ms
GetAllGuidsForCategorization: 0.101ms
CategorizeAssets: 28.058ms
ImportAndPostprocessOutOfDateAssets: 2263.525ms (1502.685ms without children)
ImportManagerImport: 74.705ms (0.692ms without children)
ImportInProcess: 73.990ms
ImportOutOfProcess: 0.000ms
UpdateCategorizedAssets: 0.022ms
RemoteAssetCacheGetArtifact: 0.000ms (0.000ms without children)
RemoteAssetCacheResolve: 0.000ms
RemoteAssetCacheDownloadFile: 0.000ms
CompileScripts: 640.978ms
PostProcessAllAssets: 41.512ms
ReloadImportedAssets: 0.000ms
VerifyAssetsAreUpToDateAndCorrect: 0.000ms
EnsureUptoDateAssetsAreRegisteredWithGuidPM: 0.204ms
InitializingProgressBar: 0.001ms
PostProcessAllAssetNotificationsAddChangedAssets: 0.140ms
OnDemandSchedulerStart: 0.000ms
RestoreLoadedAssetsState: 0.077ms
InvokeProjectHasChanged: 0.000ms
UpdateImportedAssetsSnapshot: 3.222ms
ReloadSourceAssets: 0.312ms
UnloadImportedAssets: 0.005ms
Hotreload: 1.112ms
FixTempGuids: 0.001ms
VerifyGuidPMRegistrations: 0.000ms
GatherAllCurrentPrimaryArtifactRevisions: 0.000ms
UnloadStreamsBegin: 0.193ms
LoadedImportedAssetsSnapshotReleaseGCHandles: 0.156ms
GetLoadedSourceAssetsSnapshot: 0.490ms
PersistCurrentRevisions: 0.000ms
UnloadStreamsEnd: 4.163ms
GenerateScriptTypeHashes: 0.368ms
Untracked: 4.635ms
Start importing Assets/Scenes/Main/ReflectionProbe-6.exr using Guid(c2649e5f52d6b3a41a46ddfd19406657) Importer(-1,00000000000000000000000000000000)
Could not create asset from Assets/Scenes/Main/ReflectionProbe-6.exr: Cube texture could not be created. Only Power of Two textures can be cubemaps.
(Filename: E:\unity\Editor/Src/AssetPipeline/TextureImporting/TextureImporter.cpp Line: 592)
Done importing asset: 'Assets/Scenes/Main/ReflectionProbe-6.exr' (target hash: '2f1576a2cc0894abc49b162805c1c13c') in 0.082174 seconds
Start importing Assets/Scenes/Main/ReflectionProbe-5.exr using Guid(7449e9fd3823d754397217d84a0b0869) Importer(-1,00000000000000000000000000000000)
Could not create asset from Assets/Scenes/Main/ReflectionProbe-5.exr: Cube texture could not be created. Only Power of Two textures can be cubemaps.
(Filename: E:\unity\Editor/Src/AssetPipeline/TextureImporting/TextureImporter.cpp Line: 592)
Done importing asset: 'Assets/Scenes/Main/ReflectionProbe-5.exr' (target hash: '9bfa54cee4460207578f723ae0a3049e') in 0.226096 seconds
Start importing Assets/Scenes/Main/ReflectionProbe-2.exr using Guid(79d7e373478987b479d55aaf0c30c127) Importer(-1,00000000000000000000000000000000)
Could not create asset from Assets/Scenes/Main/ReflectionProbe-2.exr: Cube texture could not be created. Only Power of Two textures can be cubemaps.
(Filename: E:\unity\Editor/Src/AssetPipeline/TextureImpor ting/TextureImporter.cpp Line: 592)
Done importing asset: 'Assets/Scenes/Main/ReflectionProbe-2.exr' (target hash: '8ee1d750df8f19ef75e7274f3819d197') in 0.083441 seconds
Start importing Assets/Scenes/Main/ReflectionProbe-7.exr using Guid(1a4b12e711acdf049ac793123ce55f63) Importer(-1,00000000000000000000000000000000)
Could not create asset from Assets/Scenes/Main/ReflectionProbe-7.exr: Cube texture could not be created. Only Power of Two textures can be cubemaps.
(Filename: E:\unity\Editor/Src/AssetPipeline/TextureImporting/TextureImporter.cpp Line: 592)
Done importing asset: 'Assets/Scenes/Main/ReflectionProbe-7.exr' (target hash: 'b1bdf47d55dd42f5d3fff12673ed52b1') in 0.064103 seconds
Start importing Assets/Scenes/Main/ReflectionProbe-9.exr using Guid(bb807051d4ecffc48bea6b0ac076e805) Importer(-1,00000000000000000000000000000000)
Could not create asset from Assets/Scenes/Main/ReflectionProbe-9.exr: Cube texture could not be created. Only Power of Two textures can be cubemaps.
(Filename: E:\unity\Editor/Src/AssetPipeline/TextureImporting/TextureImporter.cpp Line: 592)
Done importing asset: 'Assets/Scenes/Main/ReflectionProbe-9.exr' (target hash: '189a84812272388b0baac7d7380cb672') in 0.091716 seconds
Start importing Assets/Scenes/Main/ReflectionProbe-1.exr using Guid(9d52a51f23b965e4daef10a01e410c81) Importer(-1,00000000000000000000000000000000)
Could not create asset from Assets/Scenes/Main/ReflectionProbe-1.exr: Cube texture could not be created. Only Power of Two textures can be cubemaps.
(Filename: E:\unity\Editor/Src/AssetPipeline/TextureImporting/TextureImporter.cpp Line: 592)
Done importing asset: 'Assets/Scenes/Main/ReflectionProbe-1.exr' (target hash: 'bf92dc726a8acee2df015bc3653e53fb') in 0.081301 seconds
Start importing Assets/Scenes/Main/ReflectionProbe-0.exr using Guid(dee8ddd6ef2da54499939a1f582e0553) Importer(-1,00000000000000000000000000000000)
Could not create asset from Assets/Scenes/Main/ReflectionProbe-0.exr: Cube texture could not be created. Only Power of Two textures can be cubemaps.
(Filename: E:\unity\Editor/Src/AssetPipeline/TextureImporting/TextureImporter.cpp Line: 592)
Done importing asset: 'Assets/Scenes/Main/ReflectionProbe-0.exr' (target hash: 'eeaee6537312753261e7f8808db31b08') in 0.087909 seconds
A default asset was created for 'Assets/Scenes/Main/ReflectionProbe-8.exr' because the asset importer crashed on it last time.
You can select the asset and use the 'Assets -> Reimport' menu command to try importing it again, or you can replace the asset and it will auto import again.
(Filename: E:\unity\Modules/AssetDatabase/Editor/Shared/CrashedAssetImportsDatabase.cpp Line: 62)
问题原因
自定义Texture的导入
解决方式之一
过滤路径解决