Character cant pick up Items - "Getting Started with the Ultimate Inventory system"

HI

I am having an issue with my character and using the inventory system.

In stead of collecting it as it does in the "Getting Started with the Ultimate Inventory system" when trying to collect a Item from a bag, its just roles around on the floor.

Not sure what to do next really.

1618757936061.png
 
There are two main reasons this could happen
1) you set it up in a way that you need to press an input to interact
2) the interactable layer does not contain your character

I see you are using the character controller integration with the inventory system. That means you can setup your inventory pickup the character way with the pickup ability or the inventory way with the inventory interactor.
The documentation for the integration has a section for the item pickup that explains the difference between the two:

In your case since you followed the "Getting Started with the Ultimate Inventory system" video I assume you have chosen to use pickups using the inventory way.
You can learn more about it here:
and here

Essentially you can choose whether you automatically interact (auto pickup) by toggling on the auto interact field on.
1618818945279.png
You could instead use an input to interact, this can be done on input down for example.

On the Interactable component you may also choose whether you auto interact or not. This will force the auto interact even if the auto interact is off on the inventory interactor.

The last important thing is the Layer. The interactable can only be interacted with if the interactor matches the layer:
1618819347613.png

Once you've setup your interactor and interactable correctly you should be able to interact with your pickup.

Make sure that your trigger collider (and physics collider if your pickup is not kinematic) are big/small enough such that you character can interact with it normally. Of course make sure that your colliders and centered with the visual part of your item.

Last side note, the Integration works mostly with Inventory Pickups instead of item pickups. For item pickups we use the "Item Object Visualizer" component to switch the 3D model you see on the pickup. For Inventory pickup you can use the "Inventory Item Visualizer" instead. It can be used to show the 3D model of the first item in the inventory of the pickup.
Learn more about this useful component here:

If you find anything that isn't clear in the documentation please let us know and we'll fix that asap
 
Top