Skip to content

Commit 6db241e

Browse files
committed
Add OpenXRSpatialEntitiesUnified
1 parent 6a04c86 commit 6db241e

9 files changed

Lines changed: 1983 additions & 212 deletions

File tree

doc_classes/OpenXRSpatialEntitiesUnified.xml

Lines changed: 268 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<class name="OpenXRSpatialEntitiesUnifiedConfigurationAnchor" inherits="OpenXRSpatialCapabilityConfigurationBaseHeader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
3+
<brief_description>
4+
The configuration used when creating the unified spatial context with anchors.
5+
</brief_description>
6+
<description>
7+
</description>
8+
<tutorials>
9+
</tutorials>
10+
<methods>
11+
<method name="get_enabled_components" qualifiers="const">
12+
<return type="PackedInt64Array" />
13+
<description>
14+
Returns the components enabled by this configuration.
15+
[b]Note:[/b] Only valid after [method init].
16+
</description>
17+
</method>
18+
<method name="init">
19+
<return type="void" />
20+
<param index="0" name="enable_persistence" type="bool" />
21+
<description>
22+
Initializes this [OpenXRSpatialEntitiesUnifiedConfigurationAnchor], with the option to enable anchor persistence with [param enable_persistence].
23+
</description>
24+
</method>
25+
</methods>
26+
</class>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<class name="OpenXRSpatialEntitiesUnifiedConfigurationPlane" inherits="OpenXRSpatialCapabilityConfigurationBaseHeader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
3+
<brief_description>
4+
The configuration used when creating the unified spatial context with planes.
5+
</brief_description>
6+
<description>
7+
</description>
8+
<tutorials>
9+
</tutorials>
10+
<methods>
11+
<method name="get_enabled_components" qualifiers="const">
12+
<return type="PackedInt64Array" />
13+
<description>
14+
Returns the components enabled by this configuration.
15+
[b]Note:[/b] Only valid after [method init].
16+
</description>
17+
</method>
18+
<method name="init">
19+
<return type="void" />
20+
<param index="0" name="supports_mesh_2d" type="bool" />
21+
<param index="1" name="supports_polygons" type="bool" />
22+
<param index="2" name="supports_labels" type="bool" />
23+
<description>
24+
Initializes this [OpenXRSpatialEntitiesUnifiedConfigurationPlane].
25+
Detects mesh2d when [param supports_mesh_2d] is [code]true[/code].
26+
Detects polygons when [param supports_polygons] is [code]true[/code].
27+
Detects labels when [param supports_labels] is [code]true[/code].
28+
</description>
29+
</method>
30+
</methods>
31+
</class>

docs/make_rst.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,13 @@
109109
"Node3D",
110110
"Object",
111111
"PackedByteArray",
112+
"PackedInt64Array",
112113
"PackedScene",
113114
"PackedStringArray",
114115
"PackedVector2Array",
115116
"PackedVector3Array",
116117
"Projection",
118+
"RID",
117119
"Rect2",
118120
"String",
119121
"StringName",
@@ -130,6 +132,23 @@
130132
"XRNode3D",
131133
"XROrigin3D",
132134
"XRServer",
135+
"OpenXRSpatialAnchorCapability",
136+
"OpenXRSpatialCapabilityConfigurationAprilTag",
137+
"OpenXRSpatialCapabilityConfigurationAruco",
138+
"OpenXRSpatialCapabilityConfigurationMicroQrCode",
139+
"OpenXRSpatialCapabilityConfigurationQrCode",
140+
"OpenXRSpatialComponentAnchorList",
141+
"OpenXRSpatialContextPersistenceConfig",
142+
"OpenXRSpatialMarkerTrackingCapability",
143+
"OpenXRSpatialPlaneTrackingCapability",
144+
"OpenXRSpatialEntityExtension",
145+
"OpenXRSpatialComponentPersistenceList",
146+
"OpenXRSpatialComponentBounded2DList",
147+
"OpenXRSpatialComponentPlaneAlignmentList",
148+
"OpenXRSpatialComponentMesh2DList",
149+
"OpenXRSpatialComponentPolygon2DList",
150+
"OpenXRSpatialComponentPlaneSemanticLabelList",
151+
"OpenXRFutureResult",
133152
]
134153

135154
class State:

0 commit comments

Comments
 (0)