|
Post by mrlafle on Feb 5, 2018 10:39:28 GMT
Hi all. So I'm just setting up a very basic shooter character to get a feel of how things work, and I'm interested in customizing the inventory a bit. It was said in the "Shooter basics" video that I could duplicate one of the inventory prefabs and change what I want, but I can't seem to find what I want to change in the inspector, for example:
1. Set a two-weapon limit of either shooter or melee variety 2. When collecting new weapon, drop currently equipped weapon and equip new one automatically 3. Edit the HUD element in the bottom-left corner to show one box instead of three
If there are any videos/tutorials/documentation that I missed that cover all this stuff in detail, then I'd love to see it! If not, then I'd appreciate a quick overview of how I could go about doing this stuff.
P.S. And one more thing.. I've placed some weapon prefabs in my level, but the player will not pick them up when I press the key, even though it prompts me. Any ideas why that might be? I'm using ver 1.1.5 of the shooter template, btw.
|
|
|
Post by Invector on Feb 5, 2018 12:27:42 GMT
We don't have a official tutorial about customizing a vInventory prefab just yet, but it could be the next one. If you drag and drop the prefab into a scene, you can edit the content... it's pretty basic UI elements. You can also take a look into the vInventory demo scene which we show how to manipulate items like remove/add/drop/check, etc...
About your character not picking up items, you probably forgot to assign something, check the demo scene and compare the itemManager component ;)
|
|
|
Post by mrlafle on Feb 6, 2018 20:02:00 GMT
Ok I managed to customize the inventory UI to my liking, and I found why he wasn't picking up items (they were the wrong item prefabs). But I have one more thing I can't figure out.
I found that I can change the number of equipment slots with the "size" parameter of "Change Equipment Controllers" in the "vInventory" component. But I can't find how to change the size of an equipment slot (i.e. two of them hold 2 items by default, the other can hold 4) or the type of item it can hold (melee weapon, gun, potion, etc).
|
|
|
Post by freelancegames on Mar 21, 2018 19:16:26 GMT
Ok I managed to customize the inventory UI to my liking, and I found why he wasn't picking up items (they were the wrong item prefabs). But I have one more thing I can't figure out. I found that I can change the number of equipment slots with the "size" parameter of "Change Equipment Controllers" in the "vInventory" component. But I can't find how to change the size of an equipment slot (i.e. two of them hold 2 items by default, the other can hold 4) or the type of item it can hold (melee weapon, gun, potion, etc). Did you get a response to this question? I'm working on the same thing. Looks like I figured it out.
|
|
|
Post by freelancegames on Mar 22, 2018 1:04:19 GMT
1. Drag Inventory_ShooterMelee Prefab into the Hierarchy (or whatever ItemManager you're using). 2. Expand it to the following:
Inventory_ShooterMelee -> InventoryWindow -> EquipmentInventory -> EquipAreaWindow -> EquipMentArea -> EquipSlot -> EquipSlot -> EquipSlot(1) -> EquipSlot(2) -> EquipSlot(3)
3. Change the "Is Valid" Property in the inspector for EquipSlot(2) and EquipSlot(3) and only two slots will be available. Down from 4.
Get the idea?
|
|