Nodo eléctrico seleccionable por VR. El Explorador apunta con el controlador y presiona el gatillo para colocar la punta del multímetro.
More...
|
| static bool | IsRightHand (UnityEngine.XR.Interaction.Toolkit.Interactors.IXRInteractor interactor) |
|
| static readonly int | _colorID = Shader.PropertyToID("_BaseColor") |
Nodo eléctrico seleccionable por VR. El Explorador apunta con el controlador y presiona el gatillo para colocar la punta del multímetro.
CAMBIO respecto a la versión anterior:
SETUP (sin cambios respecto a lo que ya tienes):
- XRSimpleInteractable en este GameObject
- Collider (isTrigger = FALSE) para el ray-cast
- Asignar nodeTarget (ElectricalNode con voltage y current)
- Asignar multimeter desde el inspector o auto-find
◆ Awake()
| void NodeInteractable.Awake |
( |
| ) |
|
|
private |
◆ IsRightHand()
| bool NodeInteractable.IsRightHand |
( |
UnityEngine.XR.Interaction.Toolkit.Interactors.IXRInteractor | interactor | ) |
|
|
staticprivate |
◆ OnDisable()
| void NodeInteractable.OnDisable |
( |
| ) |
|
|
private |
◆ OnEnable()
| void NodeInteractable.OnEnable |
( |
| ) |
|
|
private |
◆ OnHoverEnter()
| void NodeInteractable.OnHoverEnter |
( |
HoverEnterEventArgs | args | ) |
|
|
private |
◆ OnHoverExit()
| void NodeInteractable.OnHoverExit |
( |
HoverExitEventArgs | args | ) |
|
|
private |
◆ OnSelectEnter()
| void NodeInteractable.OnSelectEnter |
( |
SelectEnterEventArgs | args | ) |
|
|
private |
◆ ResetColor()
| void NodeInteractable.ResetColor |
( |
| ) |
|
|
private |
◆ SetColor()
| void NodeInteractable.SetColor |
( |
Color | c | ) |
|
|
private |
◆ _colorID
| readonly int NodeInteractable._colorID = Shader.PropertyToID("_BaseColor") |
|
staticprivate |
◆ _interactable
| UnityEngine.XR.Interaction.Toolkit.Interactables.XRSimpleInteractable NodeInteractable._interactable |
|
private |
◆ _mpb
| MaterialPropertyBlock NodeInteractable._mpb |
|
private |
◆ _originalColor
| Color NodeInteractable._originalColor |
|
private |
◆ hoverColor
| Color NodeInteractable.hoverColor = Color.yellow |
◆ multimeter
◆ nodeRenderer
| Renderer NodeInteractable.nodeRenderer |
◆ nodeTarget
◆ probeType
◆ selectedColor
| Color NodeInteractable.selectedColor = Color.cyan |
The documentation for this class was generated from the following file: