We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2e553a + 6d06c9f commit 93a3251Copy full SHA for 93a3251
Assets/VRTK/Source/Scripts/Interactions/VRTK_InteractTouch.cs
@@ -239,7 +239,7 @@ public virtual void ForceStopTouching()
239
/// <returns>An array of colliders that are associated with the controller.</returns>
240
public virtual Collider[] ControllerColliders()
241
{
242
- return (controllerCollisionDetector != null && controllerCollisionDetector.GetComponents<Collider>().Length > 0 ? controllerCollisionDetector.GetComponents<Collider>() : controllerCollisionDetector.GetComponentsInChildren<Collider>());
+ return (controllerCollisionDetector != null ? controllerCollisionDetector.GetComponentsInChildren<Collider>() : new Collider[0]);
243
}
244
245
/// <summary>
0 commit comments