# 编辑器里运行和打包exe程序运行结果不一样，是什么问题

**URL:** <https://forums.unrealengine.com/t/exe/2155508>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [November 28, 2024, 2:44am UTC](https://forums.unrealengine.com/t/exe/2155508 "2024-11-28T02:44:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HXSD123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HXSD123](https://forums.unrealengine.com/u/HXSD123)\
**Post date:** [November 28, 2024, 2:44am UTC](https://forums.unrealengine.com/t/exe/2155508/1 "2024-11-28T02:44:00Z")

</div>

![402](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/f/6af84b335b9a1b68391c38c53b33811dcae28cc7.jpeg)

---

<div class="post-metadata">

**Author:** ![CrazyMage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CrazyMage](https://forums.unrealengine.com/u/CrazyMage)\
**Post date:** [November 28, 2024, 2:49am UTC](https://forums.unrealengine.com/t/exe/2155508/2 "2024-11-28T02:49:37Z")

</div>

因为你场景里摆放顺序和打包之后读取的顺序是不一样的

---

<div class="post-metadata">

**Author:** ![HXSD123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HXSD123](https://forums.unrealengine.com/u/HXSD123)\
**Post date:** [November 28, 2024, 7:10am UTC](https://forums.unrealengine.com/t/exe/2155508/3 "2024-11-28T07:10:58Z")

</div>

是的，我也发现了这个问题。编辑器运行时候打印是有序的，打包之后打印是乱序了。问了模型的同事，他说通过datasmith导入ue是按序导入。现在问题解决了，方法是我按打包后错误的序列，对数组重新排序。虽然解决了，但是问题根本出在哪里仍没查明原因。推测是插件datasmith导入的问题，不确定
