Running Material UI React code in an editor project

I am investigating the feasibility of running an alternative UI framework in Playcanvas editor project.
Here is my first attempt with Material UI example.

https://playcanvas.com/project/1271707/overview/material-ui-react-test

Is this use case something that the new ESM Scripts system can help with?

1 Like

From your post, I understand you want to build your game inside playcanvas and use React UI, right?

This is completely possible. Let me know which issues you are currently facing.

1 Like

Yes I want to try out building the UI with HTML rather then playcanvas element component.
I want to do this all from within the editor.

I am trying to use Material UI React component library. I just signed up to the ESM beta but the attached project was my attempt to drag in React, Material UI, and Babel before I signed up.

In that project I couldn’t make inline modules refer to each other. But this should be fine in the ESM beta ( which I’ll play with this evening ).

3 Likes

Actually the modules in the attached project can refer to each other. I had a typo when creating Blob url.

I made a new test project for Material UI using ESM modules https://playcanvas.com/project/1272496/overview/material-ui-react-esm-test

2 Likes