Custom Build without VR/XR

I want to run a custom build of the engine with a few less KBs.
The first thing that came to mind was to get rid of the VR/XR modules which I don’t need. There may be some other stuff that is niche specific, if something else comes to mind please mention it.

Anyways, I want to do a custom build of the opensource engine, but I am afraid to break things in the process. Any tips on how to exclude certain parts cleanly?

All my projects are and will be desktop/mobile experiences.

Thanks :slight_smile:

This is something that has come up recently and there a GitHub about looking at how we can do that in a more modular way.

Not sure about WebXR support specifically as it’s integrated with the camera code.

Systems like Physics, Gamepad, animation, etc should be easier though.

Could you share a link please?

We have started at looking for a new build system: https://github.com/playcanvas/engine/issues/2103

That said, for most systems, there’s one place that adds it to the engine IIRC and the files can be removed from the build file

Remove files here:

Here’s the hook up here:

There may be some dependencies else where but that’s where I would start.

2 Likes