Dynamic Building Creator

Hello,

i just submited an editorscript + a few models to create dynamic rooms/buildings.

Here are the features:

  • replacable wallpieces
  • perfect for destructable buildings
  • editorscript for one-click building generation
  • wallpieces can be replaced with windows and/or doors (included!)
  • or your own models! (just take the existing ones as template)

Here are screenshots:


And here you can have closer look in Unity’s Webplayer:
http://vidiludi.com/unity/BuildingGenerator02.html

COMING SOON ON THE ASSET STORE :slight_smile:
(if you can’t wait … you can get it on www.polyload.com, too of course)

thanks for your time
ethan

i couldn’t get anything from the webplayer…
what does your script help in creating… ??
can you post a demonstration video??

Hi,

the editor script enables you to create rooms made of single wallpieces.

As you can see on the second screenshot you can define the height, length and width of the building.
You can also create own wallpieces to make your own building with the script.

The thought behind all this is, that you can replace wallpieces with windows, doors (which are coming with the package) or remove them while playing - think of a rocketlauncher which blows away wallpieces.

The webplayer shows 3 randomly generated rooms, which were modified (added doors, windows, removed some wallpieces). Those rooms are examples what you can do with the editorscript the models!

Hope you now know what this is meant to be for. :slight_smile:

If you have further questions, just ask!

e

This’ll be free, right?

Nearly :wink:
it’s 10 $ in the Asset Store and 6 € on www.polyload.com

It’s on the Asset Store since yesterday!

Can i set this up to be used in game, say to build a base or a small village?

Hi there,

everything happens through script, which is fully included in the package. So it shouldn’t be a problem to create rooms while playing.
I will try it later this day, to make sure and let you know. :slight_smile:

Cheers
e

I just checked the code, which looks like this:

class RoomGenerator : ScriptableWizard
{
    public int x = 10;
        public int y = 10;
        public int height = 2;
        public float yWallRotationOffset = 90.0f;
        public float yCornerRotationOffset = 90.0f;
        public GameObject wallpiece = null;
        public GameObject cornerpiece = null;
       
        private Vector3 m_wallDimensions;
       
   
    [MenuItem ("Custom/Generate Room")]
    static void CreateWizard () 
    {
        ScriptableWizard.DisplayWizard/*<RoomGenerator>*/("Room Generator", typeof(RoomGenerator));
    }
   
    void OnWizardCreate ()
    {
         // .... this is where the room is built ... code was cut ;)
    }

That means you would take the code out of “OnWizardCreate()” into your script’s function plus adding the member variables to your script and it will work even ingame while playing.

Hope i could help :slight_smile:

Cheers
e

yes that one of the application i was thinking of but i was mainly thinking more of building a room manually in game.

addon: less of a room and more defense stuff like wall or gunnest

You mean like building it piece for piece?
Well that can’t be done with this script since it build complete rooms. But it could help you as a reference how to place single pieces while playing. :slight_smile: