'MRTK eye tracking layer mask

I want to prevent the eye tracking ray from seeing some objects, how can I do that? This object must contain a collider and must be interactable. So I can't delete the collider component.

I think I can solve the problem by editing the layermask property of the pointer that belongs to eye tracking, but I couldn't find how to do it.

enter image description here



Solution 1:[1]

You can create a new layer named "Ignore Raycast" and assign the layer to the GameObjects which block the ray. And then, make sure the Ignore Raycast layer has been unchecked in the array of LayerMask under the Pointing Raycast Layer Masks property in the Pointer profile. For more information about Unity Layer please see: Layer

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hernando - MSFT