Survival Template Pro
Roadmap
  • Welcome!
  • Getting Started
    • Installation Guide
      • Demo Maps
    • Scene Setup
    • Frequently Asked
    • Integrations
  • Player
    • Character
    • Modules & Behaviours
      • Inventory
        • Item Container
      • Movement
      • Camera
      • Health
      • Building
      • Object Carry
      • Wieldable
      • Interaction
      • Crafting
      • Sleep
      • Audio
  • User Interface
    • UI Behaviours Manager
    • Behaviours
      • UI_Inventory
      • UI_Damage
      • UI_Vitals
      • UI_Wieldables
      • UI_Interaction
      • UI_Sleep
  • Interaction
    • Interactable
      • Demo Interactables
    • Extension
  • Inventory
    • Create Item
      • Item Info
      • Item Settings
      • Properties & Tags
      • Item Pickup
  • Wieldables
    • Overview
  • Surfaces
    • Create Surface
    • Code Examples
Powered by GitBook
On this page
  • Inventory (Module)
  • Item Drop Handler (Module)
  • Inventory Startup Items (Behaviour)
  • Inventory Inspect Manager (Module)
  • Inventory Materials Handler (Module)

Was this helpful?

Export as PDF
  1. Player
  2. Modules & Behaviours

Inventory

Here you'll learn what each character inventory components does.

PreviousModules & BehavioursNextItem Container

Last updated 3 years ago

Was this helpful?

Inventory (Module)

Stores items in containers. It also handles removal by name/id, count items etc.

Initial Containers: The initial item containers. You can also add more containers at runtime using the AddContainer() method.

For more information on item containers see:

Item Drop Handler (Module)

Handles item pickup dropping.

Drop Obstacle Mask: The layer mask that will be used in checking for obstacles when items are dropped.

Drop Transform: Dropped items are spawned relative to this transform.

Drop Force Mode: The force mode that will be added to the rigidbody of the dropped item.

Item Drop Settings: Position, rotation offsets etc.

Sack Prefab: The prefab used when an item that's dropped doesn't have a pickup (e.g. clothes) or when dropping multiple items at once.

Inventory Startup Items (Behaviour)

Adds items to the inventory at startup using a predefined list.

Inventory Startup Info: A predefined list of items that will be added to the inventory. To create one, right click in the project view and select:

"Create / Survival Template Pro / Inventory / Startup Items"

Inventory Inspect Manager (Module)

Handles any type of inventory inspection (e.g. Backpack, external containers etc.)

Toggle Threshold: How often can the inventory inspection be toggled (e.g. open/close backpack).

Inventory Materials Handler (Module)

Acts as a wrapper for adding inventory based materials (e.g. sticks, rope etc.) to the structure (building preview) that's in view.

For information about items look into:

Item Container
Create Item