Last updated
Last updated
Right-click on your items folder in the Project window and select Create\Survival Starter Kit\New Item
Name the file whatever you want
Fill out the sections describing the item you are creating.
See for detailed information on each section
Right-click in the Hierarchy window and create an empty game object. Name this parent game object something like ItemName_Drop
so you will be able to find it later.
Add the model you wish to use for this item as a child of the empty game object
Attach a Collider
and Rigidbody
to the parent game object
Change the layer of the parent game object to Interactable. If asked to change the child object layers then you should click Yes.
Drag the parent game object into your prefabs folder to create a new prefab with the same name
Assign the Drop Prefab of the ItemData you created earlier to the prefab you just created
You now have a new base item that can be used in the Survival Starter Kit.
Check out the following sections for creating specific types of items.
Attach the script to the parent game object
Select the scriptable object you created earlier in the Item
field
This page will show you how to create a new item definition. Each item you create can have many properties that affect how it will be used in the game.