Experimental Unity Project that provides Inventory System in VRChat.
NOTICE: THIS PROJECT IS EXPERIMENTAL. PLEASE USE IT AT YOUR OWN RISK.
- Unity 2018.3 or higher
- This system used new features in Unity 2018.3.
- VRChat 2020.1 or higher
https://twitter.com/6jz/status/1256876847679172608
https://docs.mochizuki.moe/VRChat/InventorySystem
- Download UnityPackage from BOOTH or build by yourself.
- Import UnityPackage to your avatar project.
- Drag and Drop
InventorySystem_DefaultXXX.prefab
to your hierarchy tree.
- Open
Inventory Editor
fromMochizuki/VRChat/Inventory Editor
in menubar. - Drag and Drop avatar GameObject into the
Avatar
field. - Drag and Drop collider GameObject into the
Collider
field. - Drag and Drop object that you want to in and out into the
Object
field. - Drag and Drop trigger's parent GameObject into the
Parent
field. - Click
Unpack and Configure Prefab (Breaking)
- Unpack Prefab.
- Move
InventoryTrigger
to any location on the avatar. - Reset Transform.
- Replace
Shims
Sphere toGameObject
or other objects.- NOTE: The object name must be
Shims
.
- NOTE: The object name must be
- Configure Collider-s Triggers in
Particle System
.- Replace
COLLIDER
in Colliders to your hand.
- Replace
- Delete
COLLIDER
andINVENTORY_TRIGGER
. - Move
InventoryObject
to any location on the avatar.- NOTE: I recommend placing the child of the GameObject that attached Parent Constraint.
- Reset Transform.
- Move your object to brother of
PUT_YOUR_INVENTORY_ITEM_HERE
. - Delete
PUT_YOUR_INVENTORY_ITEM_HERE
andINVENTORY_OBJECT
. - Delete
InventorySystem_DefaultXXX
.
This prefab is optimized for Shapell (and other common humanoid avatars).
If you want to use a larger/smaller avatar than the common humanoid avatar, change the values to below.
(PrefabRoot)/INVENTORY_TRIGGER/InventoryTrigger
- Scale in Transform(PrefabRoot)/INVENTORY_TRIGGER/InventoryTrigger/Collider
- Radius Scale in Triggers in Particle System
- Depending on how long it took to initialize, it may appear to be in an incorrect state.
- Currently, we have confirmed the symptoms only on Unity Editor