在Commandlet中使用PrimaryAssetLabel标记DaySequence,保存时会报错

我们在使用PrimaryAssetLabel​划分项目资源时发现了如题所示的问题。

如果在Commandlet中创建了一个PrimaryAssetLabel,它管理了一个DaySequence,在保存时会报错。(代码在重现项目)​例如:

[2025.12.18-04.05.57:674][ 0]Error: FAssetBundleEntry::ImportTextItem - unterminated or ill formed AssetPaths list while importing asset bundle entry: ’ (Director BP)_C,/Game/NewFolder/NewDaySequence.NewDaySequence,/Game/NewFolder/NewWorld.NewWorld))))'. When parsing import text ‘(BundleName=“Directory”,AssetPaths=(/Game/PAL_Test.PAL_Test,/Game/NewFolder/NewWorld.NewWorld,/Game/NewDataAsset.NewDataAsset,/Game/NewFolder/NewDaySequence.NewDaySequence (Director BP)_C,/Game/NewFolder/NewDaySequence.NewDaySequence,/Game/NewFolder/NewWorld.NewWorld))))’.

原因似乎是因为​NewDaySequence.NewDaySequence (Director BP)_C这个名称无法解析。

[Content removed]

[Image Removed]

但是DaySequence中相似的代码到目前为止还没有像LevelSequence一样修改。​

[Image Removed]

[Attachment Removed]

重现步骤

  1. 使用5.7.1官方引擎。
  2. 打开DaySequence插件,在项目文件中,添加一个DaySequence。
  3. 在Editor模块中添加一个Commandlet,在Commandlet中保存一个PrimaryAssetLabel,管理该DaySeqeunce(重现项目中为UMyTestCommandlet)。
  4. 使用-run=MyTest运行UnrealEditor,保存PrimaryAssetLabel后触发报错。
  5. 在编辑器内保存不会触发,只有在运行Commandlet时才会触发。
    [Attachment Removed]

谢谢分享,我试了一下确实有这个问题。

需要把DaySequence的这个函数也修改一下,并且重新保存一次,就可以了

[Attachment Removed]