Editor: convert actor to blueprint (prefab) saving custom properties
Summary: I want to use procedural map generation based on semi-complete tiles. Think of a tile like a room/floor or something. The game is going to use a grid based movement system. Therefor the level designer need tools to mark which sections of the grid are accessible and which parts are not (something like a brush to easy mark grid sections as valid/not valid). There is some more work to do like placing objects, lights and waypoints and so on.
Now i'm able to show you what i want to achieve via screenshots. I've implemented some automatic collision mechanics to determine which grid tiles are "valid" and "invalid" in editor mode (screenshot 1: valid - green, invalid - red). This is something that has only to be done once the hole grid + assets are created (by the level designer) so i want to save the pre-computed and manually edited results (grid data stored in a TArray) inside a blueprint.
As you can see on screenshot 2 the grid data is not saved as new "default" data for the TArray (if so it would not get a reset cause i did a check in code if the array is empty before filling it up with default valid flags). How can i achieve that respect the workflow above (or if it is not possible how to achieve it anyway)?
The grid data is defined as a TArray in an USTRUCT that is defined as member in the custom Room-Actor (the owner).
asked May 13 '15 at 06:58 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here