diff --git a/Assets/SEE/Utils/Raycasting.cs b/Assets/SEE/Utils/Raycasting.cs index 7c0e7f5553..8f57f8a24b 100644 --- a/Assets/SEE/Utils/Raycasting.cs +++ b/Assets/SEE/Utils/Raycasting.cs @@ -221,7 +221,7 @@ static HitGraphElement DetermineHit(InteractableObject element) raycastHit = ray; if (ray.transform.TryGetComponent(out InteractableObject io)) { - DetermineHit(io); + result = DetermineHit(io); obj = io; } } @@ -233,7 +233,7 @@ static HitGraphElement DetermineHit(InteractableObject element) raycastHit = hit; if (hit.transform.TryGetComponent(out InteractableObject io)) { - DetermineHit(io); + result = DetermineHit(io); obj = io; } }