Show / Hide Table of Contents

Class vGear_Positioner

Detector that detect objects by distance and facing angle.
位置偵測器,以距離及面對角度來偵測物件的偵測器。

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vGear_Detector
vGear_Positioner
Inherited Members
vGear_Detector.detectTargets
vGear_Detector.specificTargets
vGear_Detector.detectedObjects
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_Positioner : vGear_Detector

Fields

angle

Facing angle range.
面對角度的容許範圍。

Declaration
[Tooltip("Facing angle range.\n面對角度的容許範圍。")]
public float angle
Field Value
Type Description
System.Single

blink

Blink component to attract user.
吸引使用者的閃爍組件。

Declaration
[Tooltip("Blink component to attract user.\n吸引使用者的閃爍組件。")]
public Renderer blink
Field Value
Type Description
UnityEngine.Renderer

blinkSpeed

Blink speed of blink component.
閃爍組件的閃爍速度。

Declaration
[Tooltip("Blink speed of blink component.\n閃爍組件的閃爍速度。")]
public float blinkSpeed
Field Value
Type Description
System.Single

countOnPosition

Return the number of objects that are on posiiton.
傳回位置偵測器目前已偵測到的物件數目。

Declaration
[Tooltip("Return the number of objects that are on posiiton.\n傳回位置偵測器目前已偵測到的物件數目。")]
public int countOnPosition
Field Value
Type Description
System.Int32

distance

Maximum distance from the positioner center.
由位置偵測器中心計算的最遠距離。

Declaration
[Header("[Position Settings]")]
[Tooltip("Maximum distance from the positioner center.\n由位置偵測器中心計算的最遠距離。")]
public float distance
Field Value
Type Description
System.Single

icon

Icon component to mention posiiton and facing angle.
提示位置及面對角度的圖標組件。

Declaration
[Header("[Components]")]
[Tooltip("Icon component to mention posiiton and facing angle.\n提示位置及面對角度的圖標組件。")]
public Renderer icon
Field Value
Type Description
UnityEngine.Renderer

iconTexture

Texture of icon component.
圖標組件的紋理。

Declaration
[Tooltip("Texture of icon component.\n圖標組件的紋理。")]
public Texture iconTexture
Field Value
Type Description
UnityEngine.Texture

isOnPosition

Return true if all required objects are on posiiton.
當位置偵測器偵測到所有需要的物件時傳回 true。

Declaration
[Tooltip("Return true if all required objects are on posiiton.\n當位置偵測器偵測到所有需要的物件時傳回 true。")]
public bool isOnPosition
Field Value
Type Description
System.Boolean

isShowing

Return true if the positioner is showing.
當位置偵測器顯示時傳回 true。

Declaration
[Tooltip("Return true if the positioner is showing.\n當位置偵測器顯示時傳回 true。")]
public bool isShowing
Field Value
Type Description
System.Boolean

maxBlinkSize

Maximum scale of blink component.
閃爍組件的最大大小。

Declaration
[Tooltip("Maximum scale of blink component.\n閃爍組件的最大大小。")]
public float maxBlinkSize
Field Value
Type Description
System.Single

minBlinkSize

Minimum scale of blink component.
閃爍組件的最小大小。

Declaration
[Tooltip("Minimum scale of blink component.\n閃爍組件的最小大小。")]
public float minBlinkSize
Field Value
Type Description
System.Single

objectsOnPosition

The objects that fulfill detect condition.
符合偵測條件的物件。

Declaration
[Header("[Position Status]")]
[Tooltip("The objects that fulfill detect condition.\n符合偵測條件的物件。")]
public List<Transform> objectsOnPosition
Field Value
Type Description
System.Collections.Generic.List<UnityEngine.Transform>

unscaledDeltaTime

Using unscaled delta time if true.
當 true 時使用未縮放的時間變化。

Declaration
[Tooltip("Using unscaled delta time.\n使用未縮放的時間變化。")]
public bool unscaledDeltaTime
Field Value
Type Description
System.Boolean

zeroHeight

Using the object zero local height value.
使用物件相對於母體的零高度值。

Declaration
[Tooltip("Using the object zero local height value.\n使用物件相對於母體的零高度值。")]
public bool zeroHeight
Field Value
Type Description
System.Boolean

Methods

CountOnPosition(List<Transform>)

Return number of target objects that are on posiiton.
傳回被位置偵測器偵測到的目標物件數目。

CountOnPosition(targets)

Declaration
public int CountOnPosition(List<Transform> targets)
Parameters
Type Name Description
System.Collections.Generic.List<UnityEngine.Transform> targets

Target objects
目標物件

Returns
Type Description
System.Int32

Hide()

Hide the positioner.
隱藏位置偵測器。

Declaration
public void Hide()

IsOnPosition(List<Transform>)

Return true if the target objects are on posiiton.
當目標物件皆被位置偵測器偵測時傳回 true。

IsOnPosition(targets)

Declaration
public bool IsOnPosition(List<Transform> targets)
Parameters
Type Name Description
System.Collections.Generic.List<UnityEngine.Transform> targets

Target objects
目標物件

Returns
Type Description
System.Boolean

SetTargets(Transform[])

Set the target objects as specific targets.
設定目標物件為指定物件。

SetTargets(transforms)

Declaration
public override void SetTargets(params Transform[] targets)
Parameters
Type Name Description
UnityEngine.Transform[] targets

Objects
物件

Overrides
vGear_Detector.SetTargets(Transform[])

Show(Boolean)

Show or hide the positioner.
顯示或隱藏位置偵測器。

Show(true)

Declaration
public void Show(bool show = true)
Parameters
Type Name Description
System.Boolean show

Show if true
當 true 時顯示

Show(Transform, Boolean)

Show or hide the positioner.
顯示或隱藏位置偵測器。

Show(transform, true)

Declaration
public void Show(Transform transform, bool show = true)
Parameters
Type Name Description
UnityEngine.Transform transform

Show on target transform
顯示在目標 Transform

System.Boolean show

Show if true
當 true 時顯示

Show(Vector3, Vector3, Boolean)

Show or hide the positioner.
顯示或隱藏位置偵測器。

Show(Vector3.zero, Vector3.zero, true)

Declaration
public void Show(Vector3 position, Vector3 eulerAngles, bool show = true)
Parameters
Type Name Description
UnityEngine.Vector3 position

Show position
顯示位置

UnityEngine.Vector3 eulerAngles

Show euler angles
顯示角度

System.Boolean show

Show if true
當 true 時顯示

In This Article
Back to top Generated by DocFX