PreyK / Unreal-Minimum-Viable-Flecs

Minimum viable Flecs entity component system implementation in Unreal Engine.
151 stars 13 forks source link

After porting to 5.3, and running the game in editor, when you quit game, your error log is spammed with errors #5

Closed joshuarobs closed 1 year ago

joshuarobs commented 1 year ago

I ported to 5.3, then run the game in the editor, pick up the gun, and when I quit the game, the error log is spammed with this:

Blueprint Runtime Error: "Accessed None trying to read property EntityRef". Node:  Highlight Entity Graph:  EventGraph Function:  Execute Ubergraph BP Weapon Component Blueprint:  BP_Weapon_Component
PreyK commented 1 year ago

https://github.com/PreyK/Unreal-Minimum-Viable-Flecs/commit/ac7bcf89b3226d13b7e91c446c172b9bdc7acb55 Fixes this. If you manually updated the project to 5.3, you need to replace the get on the entityref variable to a validated get in the BP_WeaponComponent like so: image

image

joshuarobs commented 1 year ago

I fixed it by just redownloading your latest version, thanks