component is being set to null after edit

I’ve had problems like this before, but it’s extremely rare. I hot-reload constantly and it only happened a few times in the last 4 years.

My solution:

  1. Shut off unreal
  2. Completely delete the component
  3. Build the project (full rebuild if you’re feeling saucy)
  4. Run unreal and make sure the component is indeed gone
  5. Shut off unreal, put component back, build project again.
  6. Re-open unreal, tadaa.

It seems like that specific component is cached or corrupt. However unreal works, you essentially need to remove it from the build and then re-add it fresh.

It may break your blueprints temporarily. You might be able to remedy this by loading into an empty map instead. I believe a blueprint is not on the map, unreal won’t check it and won’t notice it’s broken until you access it some way.

1 Like