Skip to content

Commit 8ea310f

Browse files
committed
Fix Anchor configuration snippet
1 parent 184c006 commit 8ea310f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xr/src/main/java/com/example/xr/arcore/Anchors.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import androidx.xr.scenecore.scene
3232
fun configureAnchoring(session: Session) {
3333
// [START androidxr_arcore_anchoring_configure]
3434
val newConfig = session.config.copy(
35-
planeTracking = Config.PlaneTrackingMode.HorizontalAndVertical,
35+
anchorPersistence = Config.AnchorPersistenceMode.Enabled,
3636
)
3737
when (val result = session.configure(newConfig)) {
3838
is SessionConfigureConfigurationNotSupported ->

0 commit comments

Comments
 (0)