Versión VR de SelectableComponent. Reemplaza OnMouseDown() con XRSimpleInteractable para funcionar con los controladores del Meta Quest.
More...
|
| static readonly int | _colorID = Shader.PropertyToID("_Color") |
Versión VR de SelectableComponent. Reemplaza OnMouseDown() con XRSimpleInteractable para funcionar con los controladores del Meta Quest.
SETUP:
- Agregar XRSimpleInteractable (o XRGrabInteractable si el componente se puede agarrar)
- Asignar el ElectricalComponent en component
- Asignar TechnicianActions desde el inspector
◆ Awake()
| void SelectableComponent.Awake |
( |
| ) |
|
|
private |
◆ Highlight()
| void SelectableComponent.Highlight |
( |
| ) |
|
◆ OnDisable()
| void SelectableComponent.OnDisable |
( |
| ) |
|
|
private |
◆ OnEnable()
| void SelectableComponent.OnEnable |
( |
| ) |
|
|
private |
◆ OnHoverEnter()
| void SelectableComponent.OnHoverEnter |
( |
HoverEnterEventArgs | args | ) |
|
|
private |
◆ OnHoverExit()
| void SelectableComponent.OnHoverExit |
( |
HoverExitEventArgs | args | ) |
|
|
private |
◆ OnSelect()
| void SelectableComponent.OnSelect |
( |
SelectEnterEventArgs | args | ) |
|
|
private |
◆ ResetHighlight()
| void SelectableComponent.ResetHighlight |
( |
| ) |
|
◆ SetColor()
| void SelectableComponent.SetColor |
( |
Color | c | ) |
|
|
private |
◆ _colorID
| readonly int SelectableComponent._colorID = Shader.PropertyToID("_Color") |
|
staticprivate |
◆ _interactable
| UnityEngine.XR.Interaction.Toolkit.Interactables.XRBaseInteractable SelectableComponent._interactable |
|
private |
◆ _mpb
| MaterialPropertyBlock SelectableComponent._mpb |
|
private |
◆ _originalColor
| Color SelectableComponent._originalColor |
|
private |
◆ _renderer
| Renderer SelectableComponent._renderer |
|
private |
◆ component
◆ hoverColor
| Color SelectableComponent.hoverColor = new Color(1f, 1f, 0f, 0.5f) |
◆ playerInteraction
◆ selectedColor
| Color SelectableComponent.selectedColor = Color.yellow |
◆ technicianActions
The documentation for this class was generated from the following file: