Skip to content

itcOnlineGaming/GA_25_P3_Shane_Conroy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entity Spawn Manager

Setting Up the Component

Adding the Component via Package Manager

To add the Entity Spawn Manager, follow these steps:

  1. Open Unity and navigate to the Window tab.
  2. Select Package Manager.
  3. Click the "+" icon and choose "Add package from git URL...".
  4. Enter this link: https://github.com/itcOnlineGaming/GA_25_P3_Shane_Conroy.git?path=/Packages/ie.mypackage.entityspawnmanager#v1.0.3

Once Installed

  • Inside the "Runtime" folder, there will be a new folder labelled "Editor," inside will be a script labelled GridControllerEditor.cs This script will change the inspector based on where you attach the other script, you wont have to move or change this one. Grid Manager.cs is the main script, and you will have to attach this to objects in your scene.

  • Usually the Grid Manager.cs script will be attached to an empty object because this script will be the point at where the grid generates, and the entities spawn.

    addingScripts

Brief Description

The Entity Spawn Manager is a grid-based component that allows developers to quickly generate a grid at a desired location and assign specific entities to spawn within each tile. This will give developers an easy method of generating a grid and spawning prefabs before run time.

The Features

  • Users can define constraints for entity placement within the grid:

  • Users can assign the amount of the rows and cols via the inspector

    • Putting these numbers in will result in a grid shown below
  • Users can drag and drop prefabs into the "Entities" list in the inspector. The entities placed in this list can be used for the grid.

  • Minimum number of entities in the grid

    • The User can define minimums for each Entity. This will spawn the minimum amount on the grid.
    • If no specific rows or columns are defined, entities will spawn randomly.
    • image
  • Filling out entire rows

    • If the User wishes to, they can fill out entire rows at once with the buttons on the side of the grid
    • image
    • A grid like thew one below will result in 2 columns of blue and one row of red
    • image ------- image
  • Specific tiles for spawning or preventing entity spawns

    • If the User wishes to specify where he wants to place specific entities, they can do so by clicking directly on the grid. Each consecutive click will cycle through the grid to the amount of entities the User has placed in the list.
  • Once you're ready

    • Once the User has placed all the conditions, the grid can be generated by clicking the "Generate Grid" button
    • image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published