Forum Discussion
RicoricoVR
2 years agoExplorer
Highlighting interactable object when close to hand or controller
Hi, I use the SDK for developping a small app on Quest 2. I would like to "highlight", for instance by changing color, the object when the hand or the controller gets close to it (hovering on it is...
Cytanic
1 year agoHonored Guest
hi , i find a solution , in the script interactable control visual you should make this code
public void SetNormalColor(Color newColor)
{
_normalColorState.Color = newColor;
// Si el estado actual es "Normal", actualiza inmediatamente el color visual.
if (InteractableView != null && InteractableView.State == InteractableState.Normal)
{
CancelRoutine(); // Cancela cualquier transición en curso.
_routine = StartCoroutine(ChangeColor(_normalColorState));
}
} and just you need make a reference of the script in other script and call the method , that works for me , sorry if mi english not is soo good and i hope this help you
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 2 years ago