Class PresetItem
Item data in inventory.
庫存的物品數據。
Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
PresetItem
Namespace: Votanic.vXR.vGear.Inventory
Assembly: Votanic.vXR.dll
Syntax
[Serializable]
[CreateAssetMenu(fileName = "Inventory Preset Item", menuName = "VotanicXR/Inventory/Preset Item", order = 1)]
public class PresetItem : ScriptableObject
Fields
accessibility
Accessibility of the item.
物品的存取性。
Declaration
[Tooltip("Accessibility of the item..\n物品的存取性。")]
public Accessibility accessibility
Field Value
Type | Description |
---|---|
Accessibility |
buyingPrice
Currency for buying.
買入時的貨幣。
Declaration
[Tooltip("Currency for buying.\n買入時的貨幣。")]
public List<CurrencyAmount> buyingPrice
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<CurrencyAmount> |
consumability
Consumability of the item.
物品的消耗性。
Declaration
[Tooltip("Consumability of the item..\n物品的消耗性。")]
public Consumability consumability
Field Value
Type | Description |
---|---|
Consumability |
identifier
Identifier for searching item.
用於搜尋物品的識別碼。
Declaration
[Tooltip("Identifier for searching item.\n用於搜尋物品的識別碼。")]
public string identifier
Field Value
Type | Description |
---|---|
System.String |
presetPosition
Preset grid position of the item.
物品存放的預設方格位置。
Declaration
[Tooltip("Preset grid position of the item..\n物品存放的預設方格位置。")]
public Vector2Int presetPosition
Field Value
Type | Description |
---|---|
UnityEngine.Vector2Int |
sellingPrice
Currency for selling.
賣出時的貨幣。
Declaration
[Tooltip("Currency for selling.\n賣出時的貨幣。")]
public List<CurrencyAmount> sellingPrice
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<CurrencyAmount> |