Class vGear_Detector
Detector abstract class for detecting objects.
偵測器抽象類別,用作偵測物件。
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vGear_Detector
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
public abstract class vGear_Detector : MonoBehaviour
Fields
detectedObjects
List of detected objects.
被偵測的物件列表。
Declaration
[Header("[Status]")]
[Tooltip("List of detected objects.\n被偵測的物件列表。")]
public List<Transform> detectedObjects
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<UnityEngine.Transform> |
detectTargets
Object detection setting.
偵測物件設定。
Declaration
[Header("[Settings]")]
[Tooltip("Object detection setting.\n偵測物件設定。")]
public ObjectDetection detectTargets
Field Value
Type | Description |
---|---|
ObjectDetection |
specificTargets
The objects are considered.
被考慮的物件。
Declaration
[Tooltip("The objects are considered.\n被考慮的物件。")]
public List<Transform> specificTargets
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<UnityEngine.Transform> |
Methods
SetTargets(Transform[])
Set the target objects as specific targets.
設定目標物件為指定物件。
SetTargets(transforms)
Declaration
public virtual void SetTargets(params Transform[] targets)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform[] | targets | Objects |