Show / Hide Table of Contents

Method AddItem

| Edit this page View Source

AddItem(CustomItem)

Add a CustomItem to the game.
Checks if the custom item is valid and unique and adds it to the list of custom items.
Also adds the prefab of the custom item to the PrefabManager.
Custom items are added to the current ObjectDB on every ObjectDB.Awake.
Declaration
public bool AddItem(CustomItem customItem)
Parameters
Type Name Description
CustomItem customItem The custom item to add.
Returns
Type Description
bool true if the custom item was added to the manager.
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾