My character's variables refresh everytime i restart the editor ue5.1

i made a duplicate on the left and it is not affected. only the original on the right has this problem. please help


This picture shows that the transform for the mesh component is reset 0-0-0 , when i start the editor
for further context this project has been migrated from ue4 to 5.0 to 5.1. I use source control and tried reloading the asset, as well as validate dependencies. nothing’s wrong with it on an obvious level

i made a duplicate and it isn’t affected by this strange phenomenon. i can’t replace the character as there are ALOT of references

1 Like

Is it a c++ project or pure bp?
If c++, then does the skeletal mesh have setupAttachment called passing in the root component as the parent?

1 Like

It’s a pure blueprint project, all values are set to the character class default when i restart the editor, and my player is the only one affected by this. even though it is a child of ALS base character. And ALS base character is a child of the common Character class.

Are you maybe calling createdefaultsubobject again on the skeletal mesh in your constructor?

i don’t use c++, so i don’t think i have. however i found out that by slightly changing the vlue from its parent, then it does not reset

BAD EXAMPLE
Parent FOV =90 , Child FOV =90.
After Restart engine, Child FOV = 0

GOOD EXAMPLE
Parent FOV =90 , Child FOV =90.1
After Restart engine, Child FOV = 90.1