Unreal Editor keeps deleting my scripted actors

Hi Razzorflame,

I took a look at your provided project and I was unable to reproduce the issue.

To be as clear as possible, I placed an instance of the class ‘Plant’ and ‘ControlledPawn’ in the scene and noticed that the ‘Plant’ class cannot be moved, which is to be expected as it has no transform properties set in code as ‘ControlledPawn’ does. I then tried adding a boolean variable and a UPROPERTY property to the plant class and both of my actors stayed in the scene. I also attempted approaching the plant class with the ControlledPawn after applying a static mesh to the Plant class and it rotated as dictated by the code.

If this issue is still persisting, or I misunderstood what you meant by ‘add a member’, please provide me with a list of steps to reproduce the issue, as detailed as possible. I hope that I can help you resolve this soon.

Have a nice day,