C# Класс UIItemStorage, Pharos

Наследование: MonoBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
background UIWidget,
maxColumns int
maxItemCount int
maxRows int
padding int
pickupSound UnityEngine.AudioClip
spacing int
template GameObject

Открытые методы

Метод Описание
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.

Описание методов

GetItem() публичный Метод

Convenience function that returns an item at the specified slot.
public GetItem ( int slot ) : InvGameItem,
slot int
Результат InvGameItem,

PlaceItemInNextAvailableSlot() публичный Метод

Replace an item in the container with the specified one.
public PlaceItemInNextAvailableSlot ( InvGameItem, item ) : bool
item InvGameItem,
Результат bool

Replace() публичный Метод

public Replace ( int slot, InvGameItem, item ) : InvGameItem,
slot int
item InvGameItem,
Результат InvGameItem,

ReplaceExisting() публичный Метод

public ReplaceExisting ( int slot, InvGameItem, item ) : InvGameItem,
slot int
item InvGameItem,
Результат InvGameItem,

Start() публичный Метод

Initialize the container and create an appropriate number of UI slots.
public Start ( ) : void
Результат void

Описание свойств

background публичное свойство

Background widget to scale after the item slots have been created.
public UIWidget, background
Результат UIWidget,

maxColumns публичное свойство

Maximum number of columns to create.
public int maxColumns
Результат int

maxItemCount публичное свойство

Maximum size of the container. Adding more items than this number will not work.
public int maxItemCount
Результат int

maxRows публичное свойство

Maximum number of rows to create.
public int maxRows
Результат int

padding публичное свойство

Padding around the border.
public int padding
Результат int

pickupSound публичное свойство

public AudioClip,UnityEngine pickupSound
Результат UnityEngine.AudioClip

spacing публичное свойство

Spacing between icons.
public int spacing
Результат int

template публичное свойство

Template used to create inventory icons.
public GameObject template
Результат GameObject