- Home /
Google Cardboard project won't build
Thanks in advance for any help that you guys might be able to offer. Essentially, every time I try to build this project that I'm working on for Google Cardboard using Unity, the build fails. I'm able to run the project with no problem, but as soon as I try to build it, I get a variety of errors, the most common being
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UI.Graphic.OnRebuildRequested () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Graphic.cs:466)
UnityEngine.UI.GraphicRebuildTracker.OnRebuildRequested () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/GraphicRebuildTracker.cs:33)
UnityEngine.CanvasRenderer.RequestRefresh () (at C:/buildslave/unity/build/artifacts/generated/common/modules/UI/CanvasRendererBindings.gen.cs:314)
UnityEditor.HostView:OnGUI()
I've now tried building the project on both a Mac and a PC as well as trying to build it for iOS and Android, all with the same results. I think it's also important to note that the project was started with the Google Cardboard build in mind... It isn't as though this is an error that I'm getting from trying to port the project over after completion (though I guess it is my bad for not trying to test that it could build properly earlier).
Thanks again!