Could not create asset from .exr: Cube texture could not be created. Only Power of Two textures can

Unity Generate Lighting Could not create asset from *.exr

报错

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的导入
在这里插入图片描述

解决方式之一

过滤路径解决
在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

极客柒

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值