Свойство | Type | Description | |
---|---|---|---|
background | UIWidget, | ||
maxColumns | int | ||
maxItemCount | int | ||
maxRows | int | ||
padding | int | ||
pickupSound | |||
spacing | int | ||
template | GameObject |
Méthode | 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, | |
Résultat | bool |
public Replace ( int slot, InvGameItem, item ) : InvGameItem, | ||
slot | int | |
item | InvGameItem, | |
Résultat | InvGameItem, |
public ReplaceExisting ( int slot, InvGameItem, item ) : InvGameItem, | ||
slot | int | |
item | InvGameItem, | |
Résultat | InvGameItem, |
public AudioClip,UnityEngine pickupSound | ||
Résultat |