[SOLVED] Using AR.js in PlayCanvas

Hey everybody,

I’d like to create a PlayCanvas game using AR.js. I wouldn’t like to move to any other framework, since I am familiar with this. How would I go about this?

1 Like

Looks like they don’t have a PlayCanvas version :frowning:

If you want to use this with PlayCanvas, you may have to write your own support for it. See ticket: https://github.com/AR-js-org/AR.js/issues/69

Maybe we’ll have to look into writing a plugin. Any way to use a min.js library with PlayCanvas?

If calling methods from the min.js file in other scripts is possible, I could probably do this.

You just add it to the project or as part of the external scripts in the project settings.

If I was to add it in external scripts, it would be possible to call the methods?

Why use AR.js when you can use PlayCanvas’ built in WebXR support? :slight_smile:

I don’t see a WebXR AR tutorial @will. Is there one? I am also more experienced in AR.js.

Adding it to external scripts adds the script to the <head> DOM so yes, you can call anything that is added to the global scope.

1 Like

Oh, that’s great then. I think this could work well for us.