🪓
Survival Starter Kit
  • 👋Survival Starter Kit
  • Overview
    • 📝Release Notes
  • Technical Details
    • ⚙️ItemData
  • Fundamentals
    • ⚒️Create an Item
    • ⚔️Create a Weapon
    • 🪨Create a Resource
    • 🍖Create a Consumable
Powered by GitBook
On this page
  • Step 1
  • Step 2
  • Step 3
  • Step 4
  • Step 5
  • Step 6
  • Step 7
  • Step 8
  • Step 9
  • Step 10
  1. Fundamentals

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.

PreviousItemDataNextCreate a Weapon

Last updated 2 years ago

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 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

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.

Select the scriptable object you created earlier in the Item field

ItemData
ItemData
⚔️Create a Weapon
🪨Create a Resource
🍖Create a Consumable
⚒️
Page cover image