You know, I made this exact same change locally a few weeks ago (for the same reasons you did). I didn't issue a pull request because I wasn't sure if modifying Entity to contain this would be appropriate for this project.
That said, I would suggest adding [NonSerialized] to the entityManager field.
Also, you missed the SetComponent method.
(Note: I have no authority here, these are just friendly suggestions. :smile: )
You know, I made this exact same change locally a few weeks ago (for the same reasons you did). I didn't issue a pull request because I wasn't sure if modifying Entity to contain this would be appropriate for this project.
That said, I would suggest adding [NonSerialized] to the entityManager field. Also, you missed the SetComponent method.
(Note: I have no authority here, these are just friendly suggestions. :smile: )