Show / Hide Table of Contents

Class vGear_Item

The independent world item of inventory system.
庫存系統中的獨立世界物品。

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vGear_Item
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_Item : MonoBehaviour

Fields

container

Virutal container of item.
物品虛擬容器。

Declaration
[Tooltip("Data of item.\n物品識別碼。")]
public vGear_ItemContainer container
Field Value
Type Description
vGear_ItemContainer

interactables

Interactables of item.
物品交互物。

Declaration
[Header("[Components]")]
[Tooltip("Interactables of item.\n物品交互物。")]
public vGear_Interactables interactables
Field Value
Type Description
vGear_Interactables

Properties

isPicking

Retrun true if the item is picked.
當物品被拾起時傳回 true。

Declaration
public bool isPicking { get; }
Property Value
Type Description
System.Boolean

Methods

Apply(Int32)

Apply this item.
使用這個物品。

Apply(0)

Declaration
public virtual void Apply(int functionIndex)
Parameters
Type Name Description
System.Int32 functionIndex

Apply(Parameter)

Apply this item.
使用這個物品。

Apply()

Declaration
public virtual void Apply(Parameter parameter = null)
Parameters
Type Name Description
Parameter parameter

Paramter class
參數類別

Store()

Store the item to inventory.
儲存物品至庫存。

Declaration
public void Store()
In This Article
Back to top Generated by DocFX