Colocation Discovery OpenXR Overview
Colocation Discovery Overview
The Colocation Discovery API allows developers to discover nearby users. This capability can be used together with other APIs, such as
Shared Spatial Anchors, to create powerful colocated, multiplayer experiences.
Colocation Discovery allows applications to start colocation advertisements and to discover nearby colocation advertisements, facilitating the automatic discovery of nearby Quest devices. Colocation advertisements are only discoverable by your aplication running on nearby supported Quest devices.
Each colocation advertisement has the following attributes:
- Advertisement UUID: A random UUID that is assigned to the colocation advertisement when started.
- Metadata: Arbitrary byte array defined by the app
Upon discovering nearby colocation advertisements, your application will receive an asynchronous discovery event which includes the discovered colocation advertisement UUID, as well as any metadata you set when starting the colocation advertisement.
Note
Currently the Colocation Discovery API requires devices to be connected to the internet.Local multiplayer increases the number of individuals in a shared physical space with restricted visibility of their surroundings. Crowded experiences create safety risks. It is important to be mindful of the occupancy of the playspace for the shared experience being built.