This feature is in an Experimental state so you can try it out, provide feedback, and see what we are planning. You cannot publish a project that uses Itemization at this time.
Please keep in mind that we do not guarantee backward compatibility for assets created at the experimental stage, the APIs for these features are subject to change, and we may remove entire Experimental features or specific functionality at our discretion. Check out the list of known issues before you start working with the feature.
Adding the fort_item_pickup_interactable_component to an entity provides a way for players to interact with the entity. On a successful interaction by an Agent, the component attempts to add the entity to the Agent’s inventory.
The fort_item_pickup_interactable_component does not work on its own, it needs two other components to be present on the entity:
item_component: Theitem_componentdefines an entity as an item. It facilitates the necessary functions to add something to an inventory.mesh_component: Themesh_componentis required for the interaction to have something to interact against.
The component attempts to add the entity to the interacting agent’s root inventory on interaction (see Inventory Component for more information about root inventories).
Example
The fort_item_pickup_interactable_component is a subclass of the basic_interactable_component, meaning it inherits the editable fields. Use these fields to configure the interaction.
Once the Custom Items and Inventory system is enabled the fort_item_pickup_interactable_component is listed in the component dropdown list.
When the entity
has an item_component and mesh_component along with the fort_item_pickup_interactable_component it becomes compatible and can be picked up from the world and added to the root inventory.