Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel6
outlinefalse
typelist
printablefalse

Setting up the Inventory

  1. Make sure the Inventory GameObject is enabled on the right and left hand under the following XR Toolkit Player > XR Origin > Camera Offset > Hand > Hand Controller > XR Toolkit Based > Wrist Menu > Wrist Menu UI

Works with both Action and Device based.:

...

2: Enable the Wrist Menu:

...


3. Add the Inventory UI Prefab to XR Toolkit player:

...

4: Populate Inventory Controller component on the Inventory UI with the buttons as follows.:

...

Seems like the prefab names need to be updated here.

...

Requires the item to be grabbable.

...

  • Set the grabbable release behaviour to Return if you want it to stay in the inventory once stored and will return when released from grab.

  • Set the Grabbable release behaviour to Leave In Place if you want the object to leave the inventory when grabbed.

Inventory Anchor dictates how the object will sit in the inventory.
Create a new Gameobject as a child of the object and place it how it should it in the inventory. Remember that the blue arrow will point forward (towards the player), the green will point up, and the red will point to the objects right.

...