accesed none trying to read property trajectory comp - when spawning character ue5

Getting an error accesed none trying to read property trajectory comp - when spawning character ue5. Nothing is functionally wrong, but i’m still getting this error everytime I spawn a character that uses Trajectory Comp

Well, I fixed it, for anyone trying to fix this in the future.

Anim BP tries to reference Trajectory component before it’s activated, probably 1-2frames faster - while the actor is being spawned

To fix this, I did this:

  1. By default, the character uses Anim asset (idle pose)
  2. Event begin play → the anim bp gets assigned.
  3. This solves the error, and it no longer happens.

I don’t think this is optimal to be honest, but it is a solution.

Good luck to you fellow dev, if you find this post while trying to find a solution.

1 Like