最近的打包成功但伴随错误与插件有关 #21

Open
opened 2025-08-17 09:52:24 +08:00 by lrss3 · 1 comment
Owner

Asset Packages/com.lrss3.deconstruction/Runtime/Deconstruction.xml has no meta file, but it's in an immutable folder. The asset will be ignored.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Asset Packages/com.lrss3.deconstruction/Runtime/XericLibrary.xml has no meta file, but it's in an immutable folder. The asset will be ignored.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(MonoBehaviour) PingIndexValueOBJ
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(MonoBehaviour) GravityDir
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Asset Packages/com.lrss3.deconstruction/Runtime/Deconstruction.xml has no meta file, but it's in an immutable folder. The asset will be ignored. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) Asset Packages/com.lrss3.deconstruction/Runtime/XericLibrary.xml has no meta file, but it's in an immutable folder. The asset will be ignored. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(MonoBehaviour) PingIndexValueOBJ UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(MonoBehaviour) GravityDir UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Member

喵~ 我看到了打包时出现的几个问题呢,让我们一个一个来分析解决喵~

问题1: XML文件缺少meta文件

Asset Packages/com.lrss3.deconstruction/Runtime/Deconstruction.xml has no meta file
Asset Packages/com.lrss3.deconstruction/Runtime/XericLibrary.xml has no meta file

解决方案:

  1. 需要为这两个XML文件生成.meta文件喵
  2. 可以尝试在Unity编辑器中右键点击这些文件 → "Reimport"
  3. 如果问题仍然存在,可能需要手动删除并重新导入这些文件

问题2: 字段重复序列化

The same field name is serialized multiple times in the class or its parent class: PingIndexValueOBJ
The same field name is serialized multiple times in the class or its parent class: GravityDir

解决方案:

  1. 这通常发生在继承关系中,子类和父类有同名的序列化字段
  2. 需要检查Base(MonoBehaviour)类及其子类中这两个字段的定义
  3. 建议修改方案:
    • 使用[NonSerialized]特性标记其中一个字段
    • 或者重命名其中一个字段
    • 或者使用[HideInInspector]如果只是想在编辑器中隐藏

需要我帮您查看具体的代码实现吗?或者您希望我@lrss3来协助解决这些问题喵?(。・ω・。)

建议我们可以:

  1. 先解决XML文件的meta问题
  2. 然后再处理序列化字段冲突的问题
  3. 最后重新打包测试

您觉得这样的解决顺序可以吗?还是您有其他想法喵~

喵~ 我看到了打包时出现的几个问题呢,让我们一个一个来分析解决喵~ ### 问题1: XML文件缺少meta文件 ```plaintext Asset Packages/com.lrss3.deconstruction/Runtime/Deconstruction.xml has no meta file Asset Packages/com.lrss3.deconstruction/Runtime/XericLibrary.xml has no meta file ``` **解决方案**: 1. 需要为这两个XML文件生成.meta文件喵 2. 可以尝试在Unity编辑器中右键点击这些文件 → "Reimport" 3. 如果问题仍然存在,可能需要手动删除并重新导入这些文件 ### 问题2: 字段重复序列化 ```plaintext The same field name is serialized multiple times in the class or its parent class: PingIndexValueOBJ The same field name is serialized multiple times in the class or its parent class: GravityDir ``` **解决方案**: 1. 这通常发生在继承关系中,子类和父类有同名的序列化字段 2. 需要检查`Base(MonoBehaviour)`类及其子类中这两个字段的定义 3. 建议修改方案: - 使用`[NonSerialized]`特性标记其中一个字段 - 或者重命名其中一个字段 - 或者使用`[HideInInspector]`如果只是想在编辑器中隐藏 需要我帮您查看具体的代码实现吗?或者您希望我@lrss3来协助解决这些问题喵?(。・ω・。) 建议我们可以: 1. 先解决XML文件的meta问题 2. 然后再处理序列化字段冲突的问题 3. 最后重新打包测试 您觉得这样的解决顺序可以吗?还是您有其他想法喵~
lrss3 pinned this 2025-12-04 12:52:03 +08:00
lrss3 added the wontfix label 2025-12-04 12:52:09 +08:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LiRuochen_WorkFlow/XericLibrary-Publish#21