Hi,
I have been fixing this bug almost 8+ hours, but can't figure out what's causing this issue.
I have an NPC blueprint with AI controller and behavior tree. I use "SpawnActor" in blueprint to spawn the NPC.
While in PIE, everything works as intended, in cook build, the spawned NPC will "sometimes" missing its mesh.
(Most of the time the spawned NPC will appear correctly, but maybe 5 or 10 minutes of gameplay, one of the spawner
actor, will spawn a missing mesh NPC for unknown reason.)
At first, I thought it is a missing reference issue, which can happen quite a lot in cook build, so I added
the required skeletalmesh to the level but the bug still happen.
I then duplicate that skeletalmesh in content browser, give it a separate material and attach it to the NPC as a
addtional component, and in cook build that duplicated mesh is also missing!!
I tried calling "SetSkeletalMesh" in the NPC's beginplay event, but the bug still persist.
I have ran out of ideas, and I still don't know what's causing this strange bug. I will appreciate if someone
could point out any possible fixes or how to debug this problem in cook build. Thank you.
Note: engine version: 4.12.5 (This is a C++ project but only blueprints were used, currently no custom c++ code)
PS. I've also posted this problem at ue4 answer hub, but after 12 hours, the view count is only 2 (which is both contributed by me) so I figured I gave forum a try.
I have been fixing this bug almost 8+ hours, but can't figure out what's causing this issue.
I have an NPC blueprint with AI controller and behavior tree. I use "SpawnActor" in blueprint to spawn the NPC.
While in PIE, everything works as intended, in cook build, the spawned NPC will "sometimes" missing its mesh.
(Most of the time the spawned NPC will appear correctly, but maybe 5 or 10 minutes of gameplay, one of the spawner
actor, will spawn a missing mesh NPC for unknown reason.)
At first, I thought it is a missing reference issue, which can happen quite a lot in cook build, so I added
the required skeletalmesh to the level but the bug still happen.
I then duplicate that skeletalmesh in content browser, give it a separate material and attach it to the NPC as a
addtional component, and in cook build that duplicated mesh is also missing!!
I tried calling "SetSkeletalMesh" in the NPC's beginplay event, but the bug still persist.
I have ran out of ideas, and I still don't know what's causing this strange bug. I will appreciate if someone
could point out any possible fixes or how to debug this problem in cook build. Thank you.
Note: engine version: 4.12.5 (This is a C++ project but only blueprints were used, currently no custom c++ code)
PS. I've also posted this problem at ue4 answer hub, but after 12 hours, the view count is only 2 (which is both contributed by me) so I figured I gave forum a try.
Comment