Table of Contents

Class XRInputSourceArray

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The interface XRInputSourceArray represents a live list of WebXR input sources, and is used as the return value of the XRSession property InputSources. Each entry is an XRInputSource representing one input device connected to the WebXR system.
[Value("XRInputSourceArray")]
public class XRInputSourceArray
Inheritance
XRInputSourceArray
Inherited Members

Remarks

In addition to being able to access the input sources in the list using standard array notation (that is, with index numbers inside square brackets), methods are available to allow the use of iterators and the XRInputSourceArray.ForEach method is also available.

See also on MDN

Constructors

XRInputSourceArray()

public XRInputSourceArray()

Properties

this[int]

public XRInputSource this[int i] { get; set; }

Parameters

i int

Property Value

XRInputSource

Length

NOTE
Experimental
The read-only length property returns an integer value
indicating the number of items in the input source list represented by
the XRInputSourceArray object.
[Value("length")]
public ulong Length { get; }

Property Value

ulong

An integer value indicating the number of XRInputSource objects
representing WebXR input sources are included in the array.

Remarks