Skip to content

Commit 5fb219a

Browse files
committed
GameObjects that cannot render are not considered for input.
1 parent bd2e25e commit 5fb219a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v3/src/input/global/components/HitTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var HitTest = function (tempMatrix, x, y, gameObjects, camera, output)
2424
{
2525
var gameObject = culledGameObjects[i];
2626

27-
if (!gameObject.input.enabled)
27+
if (!gameObject.input.enabled || !gameObject.willRender())
2828
{
2929
continue;
3030
}

0 commit comments

Comments
 (0)