Hello Everyone! I’m new to Unity 2019.
When I make a 2d project, put one GameObject into the scene and run it, I can see it when I preview the game. When I build the game on Windows 32, 64, or WebGL, I get a blue screen - or whatever the background color of the camera is. If I decide to add audio, that will play, but the graphics will not render. In build settings, I select the scene to add to the build. I have created new scenes and new projects to try that as well. All to no avail.
I have seen several of these issues posted, but either they are never resolved, or the issue is trivial and not relevant to me. I ran in debug mode (because I wanted to see what the problem is) and I get a NullReferenceException
. Please note that I have not written any scripts. Only added a single sprite.
I looked in the logs and found this repeated a million times:
NullReferenceException: Object reference not set to an instance of an object
at Unity.Collections.NativeSlice`1[T].get_Item (System.Int32 index) [0x00001] in C:\buildslave\unity\build\Runtime\Export\NativeArray\NativeSlice.cs:200
at UnityEngine.U2D.SpriteShapeGenerator.TessellateContour () [0x00192] in C:\Unity\Breakout2\Library\PackageCache\com.unity.2d.spriteshape@3.0.10\Runtime\SpriteShapeGenerator.cs:1001
at UnityEngine.U2D.SpriteShapeGenerator.Prepare (UnityEngine.U2D.SpriteShapeController controller, UnityEngine.U2D.SpriteShapeParameters shapeParams, System.Int32 maxArrayCount, Unity.Collections.NativeArray`1[T] shapePoints, Unity.Collections.NativeArray`1[T] metaData, UnityEngine.U2D.AngleRangeInfo[] angleRanges, UnityEngine.Sprite[] segmentSprites, UnityEngine.Sprite[] cornerSprites) [0x00051] in C:\Unity\Breakout2\Library\PackageCache\com.unity.2d.spriteshape@3.0.10\Runtime\SpriteShapeGenerator.cs:2073
at UnityEngine.U2D.SpriteShapeController.BakeMesh (System.Boolean needUpdateSpriteArrays) [0x00371] in C:\Unity\Breakout2\Library\PackageCache\com.unity.2d.spriteshape@3.0.10\Runtime\SpriteShapeController.cs:479
at UnityEngine.U2D.SpriteShapeController.OnWillRenderObject () [0x0002d] in C:\Unity\Breakout2\Library\PackageCache\com.unity.2d.spriteshape@3.0.10\Runtime\SpriteShapeController.cs:351
(Filename: C:/buildslave/unity/build/Runtime/Export/NativeArray/NativeSlice.cs Line: 200)
I have no idea where to go from here. I have searched the web extensively. Any help would be appreciated. I have a Zotac GTX 1060 Ti 6gb graphics card, by the way.