Exclude screen space UI elements from world interaction
This commit is contained in:
parent
36660c8495
commit
0a609ce083
@ -561,9 +561,10 @@ namespace Passer {
|
||||
|
||||
private new RaycastResult FindFirstRaycast(System.Collections.Generic.List<RaycastResult> raycastResults) {
|
||||
foreach (RaycastResult result in raycastResults) {
|
||||
if (result.isValid)
|
||||
if (result.isValid && result.worldPosition != Vector3.zero) {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return new RaycastResult();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user