Skip to content

Commit 60ae298

Browse files
authored
Update to latest Babylon Native submodule (BabylonJS#10)
* Add logic for SetCurrentActivity * Switch to immersive-ar Update Babylon Native to latest
1 parent c2a02c6 commit 60ae298

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

Apps/Playground/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const EngineScreen: FunctionComponent<ViewProps> = (props: ViewProps) => {
6060
} else {
6161
if (box !== undefined && scene !== undefined) {
6262
const xr = await scene.createDefaultXRExperienceAsync({ disableDefaultUI: true, disableTeleportation: true })
63-
const session = await xr.baseExperience.enterXRAsync("immersive-vr", "unbounded", xr.renderTarget);
63+
const session = await xr.baseExperience.enterXRAsync("immersive-ar", "unbounded", xr.renderTarget);
6464
setXrSession(session);
6565
box.position = (scene.activeCamera as TargetCamera).getFrontPosition(2);
6666
box.rotate(Vector3.Up(), 3.14159);

Apps/Playground/node_modules/react-native-babylon/android/src/main/cpp/BabylonNativeInterop.cpp

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Apps/Playground/node_modules/react-native-babylon/android/src/main/java/com/reactlibrary/BabylonNativeInterop.java

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)