unity-builder
unity-builder copied to clipboard
Lumin Support
Context
We have a Unity project that utilizes the Lumin build engine. This can be done all well and good in the Unity UI (and in CLI too!) but unity-builder
doesn't support Lumin builds. Is there a chance that this package could host this kind of support? Is this on the roadmap?
Suggested solution
- Project requires a
.privkey
and.cert
in the project hierachy -
... \2021.1.19f1\Editor\Unity.exe" -quit -batchmode -executeMethod BuildScript.BuildLumin-logFile ".\Logs\lumin-build.log"
Assets/Editor/BuildScript.cs
static void BuildLumin(){
Directory.CreateDirectory("dist/Lumin");
string[] defaultScene = {
"Assets/SimplyVideo/Demo/Demo.unity"
};
BuildPipeline.BuildPlayer(
defaultScene,
$"dist/Lumin/MagicLeap-{UnityEngine.Application.version}.mpk" ,
BuildTarget.Lumin,
BuildOptions.None
);
}
The above build script builds a Lumin project. I'm not exactly sure how this fits into the hierarchy of the `unity-builder project, but you could run the locally (with Lumin SDK installed correctly). Considered alternatives
Additional details
We support custom build methods which should be able to cover this case. Is this something you've already tried?
I think you would also need an image that targets Lumin.
You could maybe make the image by setting the module to lumin
and then use it with https://game.ci/docs/github/builder#customimage
There are probably some other gotchas as well.
Hey guys, thanks for the response.
We're deciding whether to pursue this kind of development as a team and if the benefits are worth the time spent for us.
I'm happy this to be closed for now :)