Create an Item
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.
Step 1
Right-click on your items folder in the Project window and select Create\Survival Starter Kit\New Item
Step 2
Name the file whatever you want
Step 3
Fill out the sections describing the item you are creating.
See ItemData for detailed information on each section
Step 4
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.
Step 5
Add the model you wish to use for this item as a child of the empty game object
Step 6
Attach a Collider
and Rigidbody
to the parent game object
Step 7
Attach the ItemObject script to the parent game object
Select the ItemData scriptable object you created earlier in the Item
field
Step 8
Change the layer of the parent game object to Interactable. If asked to change the child object layers then you should click Yes.
Step 9
Drag the parent game object into your prefabs folder to create a new prefab with the same name
Step 10
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.
Last updated