Custom ability deletes itself on scene reload.

JamesBerkelmans

New member
Hi, I'm having an issue with a custom ability I set up.

The ability works completely fine when testing in a gameplay scene. However, when I try to either reload said scene, even if scenes have been loaded in between (say the player goes to the main menu and then back to the game scene), the ability is removed from the character controller.

I believe I have missed something in the set up of the custom ability. I have attached an image of the ability attached to the player, then I have attached in another image; the error I received, the ability being gone and said custom ability script.

Thank you in advance! I hope it's a small issue I just happened to gloss over.

-James
 

Attachments

  • Error.jpg
    Error.jpg
    791.6 KB · Views: 7
  • fine.jpg
    fine.jpg
    258.7 KB · Views: 7
I ran into this issue (or something very similar). Ultimately I resorted to making the character and supporting gameobjects persistent for the entire lifecycle of the game. A bit hacky, but... you know, deadlines....
 
Top