Search Unity

Mass Object Placement Scripts

Discussion in 'Scripting' started by g0tNoodles, Feb 16, 2016.

  1. g0tNoodles

    g0tNoodles

    Joined:
    Nov 28, 2010
    Posts:
    193
    Hi everyone,

    I have been playing about with trying to make my object placement a little faster and have come up with the following scripts. If anyone would like to use them or modify them to make them better (which I am sure won't be hard) please feel free to do so...

    I have attached both scripts to this thread. All you have to do is attach the ObjectPlacementScript.cs to any gameobject within your scene and place the ObjectPlacementEditor.cs in your Editor folder.

    Just to clarify; any objects in your chosen folder from your Resources folder will up for placement so it may be a good idea to split the objects in to individual folders to make it easier. As an example, I have a Trees folder and a Buildings folder.
     

    Attached Files: