Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Automated Unity build

Anyone had success using command line build for Unity? I think I'm close but still having issues getting /App output.

using UnityEditor;

class Builder
{
    static void Build()
    {
        string[] scenes = { "Assets/myScene.unity" };
        string buildPathLocation ="/App";
         BuildTarget buildTarget= BuildTarget.WSAPlayer ; 
         BuildOptions buildOptions = BuildOptions.None;
        BuildPipeline.BuildPlayer(scenes, buildPathLocation, buildTarget, buildOptions);
    }
}

Command line:
Unity.exe -nographics -batchmode -projectPath "C:\Projects\UnityTest\UnityTest" -logFile "C:\Unitylog.txt" -executeMethod Builder.Build

N6MAA10816

Best Answers

Answers

  • Options

    Tried some powershell trickery but no luck. Going to fall back to Autohotkey for Unity followed by powershell for VS. Should save a few miles on my keyboard/mouse

    N6MAA10816

  • Options

    I remember trying something similar in Unity using power shell:

    Unity.exe -projectPath $samplesDir\$dir -quit -batchmode -executeMethod PerformBuildScript.PerformBuild

    Should not but I wonder if changing the scene name to Main.unity helps?

  • Options

    Looked into
    Install Universal Windows Apps with the **WinAppDeployCmd ** tool https://msdn.microsoft.com/en-us/library/mt203806.aspx
    but it was unable to find the HMD on the network.

    Will try the REST API next

    N6MAA10816

Sign In or Register to comment.