Property | Type | Description | |
---|---|---|---|
background | UIWidget, | ||
maxColumns | int | ||
maxItemCount | int | ||
maxRows | int | ||
padding | int | ||
pickupSound | |||
spacing | int | ||
template | GameObject |
Method | Description | |
---|---|---|
GetItem ( int slot ) : InvGameItem, |
Convenience function that returns an item at the specified slot.
|
|
PlaceItemInNextAvailableSlot ( InvGameItem, item ) : bool |
Replace an item in the container with the specified one.
|
|
Replace ( int slot, InvGameItem, item ) : InvGameItem, | ||
ReplaceExisting ( int slot, InvGameItem, item ) : InvGameItem, | ||
Start ( ) : void |
Initialize the container and create an appropriate number of UI slots.
|
public PlaceItemInNextAvailableSlot ( InvGameItem, item ) : bool | ||
item | InvGameItem, | |
return | bool |
public Replace ( int slot, InvGameItem, item ) : InvGameItem, | ||
slot | int | |
item | InvGameItem, | |
return | InvGameItem, |
public ReplaceExisting ( int slot, InvGameItem, item ) : InvGameItem, | ||
slot | int | |
item | InvGameItem, | |
return | InvGameItem, |
public AudioClip,UnityEngine pickupSound | ||
return |