GazeInteractor component on the interaction rig and a GazeInteractable component on the Canvas. The UI elements also have to be reachable as IConecastTargets, which is what GazeConecaster hit-tests against. IConecastTarget is an interface, not a component. You do not attach it yourself; ConecastableCanvas generates the targets for you.
IConecastTargets from Canvas graphics, if those graphics are children of Unity’s Selectable components such as buttons and toggles. The GazeConecaster component finds these targets and magnetizes the gaze selection point to them.ConecastableCanvas to the GazeInteractable attached to the Canvas object. If there are nested Canvases, use the root.ConecastableCanvas is experimental. Experimental types can change without a deprecation cycle.| Serialized member | Description |
|---|---|
Auto Generate Targets | If enabled, all graphics tied to Selectables under the attached Canvas are considered for conecasting. To set targets explicitly instead, disable this and attach ConecastableCanvasTarget components to the Selectables. |
Inherit Mesh From Parent | If enabled, the Canvas Mesh and Surface fields are inherited from the parent ConecastableCanvas, if one is present. This is a convenience, so child ConecastableCanvas components do not need to wire these dependencies themselves. |
Canvas Mesh | Optional. The CanvasMesh used for mesh canvas rendering, if one exists. |
Surface | Optional. The ISurface used for mesh canvas hit-testing, if one exists. |
Enable Debug Visuals | If enabled, outlines are drawn around graphics in the Canvas, visible in the headset. The outline is red if the target is invalid, as described in the usage notes and limitations. |
Tiebreak Comparer | Optional. By default this component depth-sorts graphics so that equal candidates resolve consistently. To override that, assign a component implementing IComparer<GameObject> here. |

ConecastableCanvas component is required for each Canvas in the scene, including nested Canvases.
RectMask2D components. If a target is rotated so that clipping may not work correctly, the debug visual is drawn red rather than green.
RectMask2D, not Mask. If you need a Mask, add a RectMask2D as well, to the viewport or a child, so that targets are clipped correctly.ConecastableCanvas normally finds every Selectable graphic and makes it conecastable. When you want to choose explicitly which graphics are included, attach ConecastableCanvasTarget components to the Selectable components and assign the target graphics. The graphics must be children of the Selectable. If you provide no graphics, ConecastableCanvas ignores that Selectable entirely. Use the Enable Debug Visuals setting of ConecastableCanvas to visualize these changes.ConecastableCanvasTarget is experimental. Experimental types can change without a deprecation cycle.