GetChannelIndicesAt
Returns an array of channel indices that are present at the specified pixel onscreen.
Declaration
public List<int> GetChannelIndicesAt(int viewportX, int viewportY, Nullable<XRCameraParams> cameraParams = null)
Summary
Remarks
This query allocates garbage.
Returns
An array of channel indices present for the pixel.
Parameters
| Name | Type | Summary |
|---|---|---|
| viewportX | int | Horizontal coordinate in viewport space. |
| viewportY | int | Vertical coordinate in viewport space. |
| cameraParams | Nullable<XRCameraParams> | Params of the viewport to sample with. Defaults to current screen dimensions if null. |
Returns an array of channel indices that are present at the specified pixel onscreen.