Class Interaction
Interaction settings of interactables.
交互物的互動設定。
Inheritance
System.Object
Interaction
Namespace: Votanic.vXR
Assembly: Votanic.vXR.dll
Syntax
[Serializable]
public class Interaction
Constructors
Interaction()
Declare an interaction.
宣告一個互動。
Declaration
public Interaction()
Fields
command
The main command to send when the interaction has done.
互動完成時主要傳送的指令。
Declaration
[Tooltip("The command to send when the interaction has done.\n互動完成時傳送的指令。")]
public string command
Field Value
Type | Description |
---|---|
System.String |
commands
The command list of interaction, including main command.
互動指令列表,包括主要指令。
Declaration
[Tooltip("The command list of interaction, including main command.\n互動指令列表,包括主要指令。")]
public List<InteractionCommand> commands
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<InteractionCommand> |
interactionType
The interaction method of interactables.
與交互物產生互動的方法。
Declaration
[Tooltip("The interaction method of interactables.\n與交互物產生互動的方法。")]
public InteractionType interactionType
Field Value
Type | Description |
---|---|
InteractionType |
persistentPriority
Persistent listeners priority for Unity Event.
Unity 事件非實時回調函數優先。
Declaration
[Tooltip("Persistent listeners priority.\n非實時回調函數優先。")]
public bool persistentPriority
Field Value
Type | Description |
---|---|
System.Boolean |
target
The integer value of command. For example, object index. (User, Controller...)
指令整數值。例如物件編號(使用者、控制器...)。
Declaration
[Tooltip("The integer value of command. For example, object index. (User, Controller...).\n指令整數值。例如物件編號(使用者、控制器...)。")]
public int target
Field Value
Type | Description |
---|---|
System.Int32 |
unityEvent
The event needed to be called or passed parameters.
需要呼叫或傳遞參數的事件。
Declaration
[Tooltip("The event needed to be called or passed parameters.\n需要呼叫或傳遞參數的事件。")]
public ParameterEvent unityEvent
Field Value
Type | Description |
---|---|
ParameterEvent |
value
The floating value of command.
指令浮點值。
Declaration
[Tooltip("The floating value of command.\n指令浮點值。")]
public float value
Field Value
Type | Description |
---|---|
System.Single |