Using Set Static Mesh function randomly returns false and doesn't change the static mesh.

As simple as that, I tried different meshes, blueprints, even projects, also I created a soft reference so I could load the asset first and then set the new static mesh.

I uninstalled, cleaned and reinstalled unreal engine, same problem.

What could it be?

EDIT: Forgot to add that I’m working on version 4.26.2

1 Like

Can you show the code?

As simple as this.

I called that function with manual input, interfaces, loops, with timers, C++, etc. Same problem, the Set Static Mesh sometimes is true sometimes is false.

I also used different meshes and even meshes in other directories, soft references loaded, before begin play, after begin play, collision disables, pre physics, post physics, no overlap events generated. Happens in other projects too in 4.26.

What I’m doing now is downloading unreal 4.24 and 4.27 to see if I have the same problem there.

1 Like

Same problem with 4.24

I’d take a look in the log, just after you’ve done it. Maybe there’s something useful there.