Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Problems publishing my game.

Discussion in 'Package Manager' started by mikelowefedex, Oct 17, 2020.

  1. mikelowefedex

    mikelowefedex

    Joined:
    Sep 29, 2020
    Posts:
    71
    Hello,
    I am getting these following errors when I click, "Build" for WebGL when trying to publish my game...

    Then, I get these errors when I click "Build and Run"...

    Then, when I click on the link to my game, the page doesn't respond and asks me if I want to wait or exit the page. How can I troubleshoot what the problem is? Thank you.
     
  2. mikelowefedex

    mikelowefedex

    Joined:
    Sep 29, 2020
    Posts:
    71
    If it helps any, I was able to locate PackageManagerProxy.cs on my C: drive to look at the code in Visual Studio. Line 21 says,
    Code (CSharp):
    1. var projectSettings = InternalEditorUtility.LoadSerializedFileAndForget("ProjectSettings/ProjectSettings.asset");
    2.        
    before my problem happens on line 23 (as a Null Reference Exception).

    Code (CSharp):
    1. so.FindProperty("applicationIdentifier.Array.data[0].second")
    must somehow return null so

    Code (CSharp):
    1. so.FindProperty("applicationIdentifier.Array.data[0].second").stringValue
    gives the "Null Reference Exception" error. In my 'Build Settings' I don't have 0 scenes in my "Scenes in build" window, so, I can't understand why I am getting this error.
     
  3. mikelowefedex

    mikelowefedex

    Joined:
    Sep 29, 2020
    Posts:
    71
    I 'reimported all' and still got the same errors. Then, I took my 'packages' folder out of my project and put it on my desktop. The errors went away, BUT the "Share WebGL Game" option was no longer in my Window menu anymore. In package manager, I looked for, "Web" (for WebGL, to get back whatever .cs script put the "Share WebGL Game" option in my window menu), and Package Manager said there were no results for "Web", except for when I selected, "Show Preview Packages" for my search. I reinstalled the, "Share WebGL Game" package and clicked "Build" under "Build Settings", and got back the same errors again.
     
unityunity