Please enable JavaScript.
Coggle requires JavaScript to display documents.
UE_horror game, BPC_Inventory, structure, BP_Inventory_Master(Actor) -…
UE_horror game
第五節:Inventory System
29.Inventory Component
BPC_Inventory
●
Make it Array
Add Function
AddItem
BP_Inventory_Master(Class Reference
Amount(Integer)
Both promote to local variable
Character BP
structure
S_ItemData
W_inventorySlot
Variable:Amount
Reference:S_ItemData
Name, Icon(Texture2D)
Add reference : ItemData
新增InventoryMaxAmount
S_InventoryItems
BP_Inventory_Master(Class Reference)
Amount(Integer)
Add Reference :InventorySlot(S_InventoryItems)
BP_Inventory_Master(Actor)
Child BP
BP_Inventory_FlashLightBattery
修改ItemData內的名字和Icon
●