Skip to content

Integrate XR support#9

Merged
ryantrem merged 11 commits into
BabylonJS:masterfrom
ryantrem:xr
May 15, 2020
Merged

Integrate XR support#9
ryantrem merged 11 commits into
BabylonJS:masterfrom
ryantrem:xr

Conversation

@ryantrem

Copy link
Copy Markdown
Member

This change brings XR support into the react native layer. One notable change here is with the camera permissions request code I added in the JS layer. See the comments for some explanation, and let me know if anyone has thoughts on the way I currently just "inject" the permissions check into the existing XR session initialization function.

NOTE: This PR depends on BabylonJS/BabylonNative#264. Once this PR is completed, I will update the Babylon Native submodule to master.

Comment on lines +71 to +72
// TODO: Figure out why this causes the app to crash
//Napi::Detach(m_env);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still happen?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is actually why when I tried to integrate your JSC changes it was crashing in some bgfx cleanup ('cause I also had this line). I just don't want to dig into it now given the JSI work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants