编辑器里,下面这两种情况下运行会报错:
一、
开启 ENABLE_CODES, CodeMode 选择 Client 模式,运行报错:
System.IO.DirectoryNotFoundException: Could not find a part of the path “/ET/Config/Excel/c/StartConfig/Localhost/StartMachineConfigCategory.bytes”.
这是因为 /ET/Config/Excel/c 目录下没有 StartConfig,手动复制过去就没错了。
二、
关闭 ENABLE_CODES, CodeMode 选择 Server 模式,运行报错:
system.Exception: ResultCallback error: GetAllConfigBytes
at ET.EventSystem.Callback[A,T] (A args) in /ET/Unity/Assets/Scripts/Core/Module/EventSystem/EventSystem.cs:739
at ET.ConfigComponent.LoadAsync () [0×00056] in /ET/Unity/Assets/Scripts/Core/Module/Config/ConfigComponent.cs:71
这是因为没找到 Callback 函数。