tuyoogame / YooAsset

unity3d resources management system
https://www.yooasset.com/
Apache License 2.0
2.34k stars 460 forks source link

读取默认加密方法会导致报错 #223

Closed absences closed 8 months ago

absences commented 8 months ago

image _encryptionField = new PopupField(encryptionClassTypes, defaultIndex); 修改为 _encryptionField = new PopupField(encryptionClassTypes, defaultIndex == -1 ? 0 : defaultIndex); 懒得pull了

absences commented 8 months ago

构建枚举,没有读取到存储值时,-1无法对应, _buildModeField = new PopupField(buildModeList, defaultIndex); 且ScriptableBuildPipeline从1开始 取buildModeList[0]作为默认索引 _buildModeField = new PopupField(buildModeList, defaultIndex == -1 ? (int)(EBuildMode)buildModeList[0] : defaultIndex);

gmhevinci commented 8 months ago

感谢反馈,我这边会在下个版本修复。

absences commented 8 months ago

_buildModeField = new PopupField(buildModeList, defaultIndex == -1 ? (int)(EBuildMode)buildModeList[0] : defaultIndex); 取枚举列表第一个值,不是0