浏览代码

Force remapping of `assemblyName` to `Assembly-CSharp-Editor`

Fix error message when failing to deserialize
/main
Peter Bay Bastian 7 年前
当前提交
f92611b1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Util/SerializationHelper.cs

3
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Util/SerializationHelper.cs


TypeSerializationInfo info = item.typeInfo;
if (remapper != null)
info = DoTypeRemap(info, remapper);
info.assemblyName = "Assembly-CSharp-Editor";
throw new ArgumentException(string.Format("Can not deserialize {0}, type {1} is invalid", info));
throw new ArgumentException(string.Format("Can not deserialize ({0}, {1}), type is invalid", info.assemblyName, info.fullName));
T instance;
try

正在加载...
取消
保存