-
Notifications
You must be signed in to change notification settings - Fork 40
Spawnables
GreasedScotsman edited this page Sep 28, 2022
·
1 revision
Spawnable Crates are spawnable, physical objects that must have at least one rigidbody. These are currently limited in functionality to loading rigidbody prefabs, but will be the main way to include guns, melee weapons, NPCs, destructible boxes, basketballs, etc. in a level.
- Create a prefab for the spawnable item.
- Select the Pallet from the Asset Warehouse window.
- In the Inspector, click
Add Crate. - In the Create Crate window, fill out the
Crate Titlefield and select the prefab of the spawnable item for theAsset Referencefield.
First Method:

Ensure the Asset Warehouse Spawner Overlay is visible in the Scene view. (The Overlay will have the Spawnable Crate icon and may be docked in the toolbar. If so, click the toolbar icon to show the Overlay. If the Overlay is completely hidden, press Space, the select AW Spawner from the list of overlays to reveal it.)
- Select the Spawnable you want to add to the scene in the Asset Warehouse.
- In the SceneView, drag and drop the Spawnable icon into the scene where you want to place the item. This method will automatically add the Spawnable Crate Placer component and fill the
Spawnable Crate Referencefield with the Spawnable Crate selected in the Asset Warehouse.
Second Method:
- Create an Empty GameObject at the location where you want to place the Spawnable.
- Add the
Spawnable Crate Placerscript to the GameObject. - Open the selection picker using the circle button to the right of the
Spawnable Crate Referencefield. - Select the desired Spawnable Crate.
Spawnable Crate