How to add box colliders to an actor and save it?

Well, since nobody moderates this forum, I might as well start a new topic:

  • I have a tile based game and I want to generate colliders before I package the game (I guess this would be relevant for procedural games too).
  • Right now, I have an Editor Utility Widget that calls the following function on an actor that handles all interactivity:

  • This makes the colliders show up in the Editor window, but they don’t stick. Anytime I restart Unreal, they’re gone again.

How can I make the generated colliders save on the actor which is placed in my level?

You are allowed to start topics, that’s part forums experience… :slight_smile:

You can’t save colliders on actors. You either have to do what you have here, or put a record of which actors have colliders in the save game, and then on load, use the code above to show them ( create them ).

Thanks for the quick reply!

Ouch, that’s so incredibly annoying and confusing, especially since after the Editor Utility Widget has finished running, it appears as if it has worked:

Ok, so now I’ve modified the script to only save the locations of where the colliders are supposed to go then, and then run through that array on BeginPlay. :pensive:

Yup, sorry. It’s either that or save the level ( or course )…