- Home /
Why is the scene view completely black?
I've just recently started using Unity (only yesterday), so forgive me if this has an obvious fix. I am trying to get started on Unity's 2D game kit learning project as an introduction to the workings of Unity 2D, and I believe I have followed all the instructions exactly. When creating a new scene (which is one of the first steps in the tutorial), everything appears pitch black, including all the pre-existing sprites of the character and tiles on which she is standing.
When trying to add tiles from the preset tile palette, only the tiles' outlines are visible, and I can't seem to find a way to see the sprites, assets, or background. I have already uninstalled and reinstalled the project, and have fiddled with the lighting and sorting layers, but (seeing as how I know next to nothing about Unity as of now) these methods have yielded no results. Has anyone encountered this problem before? If it's any help, I keep receiving the error:
Lut3DBaker.compute: Kernel at index (2) is invalid UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Below is the ideal scene as depicted in the tutorial with its corresponding view in my program. Thanks!
I can see a post process volume in the scene there. $$anonymous$$aybe the project doesnt come with the post processing stack package? Try going into (on the top menu where it says file and edit etc.) Window -> Package $$anonymous$$anager, click advanced settings and turn on 'show preview packages' then search for post processing and install the package. $$anonymous$$aybe this is the issue? Idk @JLub04
You seem to have a ScreenFader. Are you sure the overlay simply does not cover the view?
Answer by saeidscorp · Aug 24, 2020 at 07:41 PM
I'm on Linux running Unity 2020.1 and found out the Vulkan API was somehow pre-selected for this project and that caused the kernel errors. Changing the API to OpenGLCore in Player Settings fixed the issue for me. Just my 2 cents...
Thanks a lot mister, I had to add OpenGLCore on my mac in order to work things out!!
Answer by JesseAtBlue · Aug 20, 2020 at 02:23 PM
Hi @JLub04,
Is the project made for Unity 2020?
Have you tried using the 2019 LTS? You can switch the versions in the Unity Hub
Kind regards, Jesse
Answer by Namey5 · Aug 20, 2020 at 04:16 AM
There appears to be an error in the 3rd kernel of the 'Lut3DBaker' compute shader, which is what I imagine would be breaking the renderer. My first inclination is that your version of Unity doesn't match up with the Post-Processing package you have installed - I would follow @Llama_w_2Ls advice and I would also double check the version of Unity you are using is the same as that of the tutorial.
@Namey5 yep, that seems to have been the problem! I looked again at the tutorial, and it was last updated to be compatible with Unity 2019.2, so I downgraded the project and that appears to have fixed the issue. what's weird is that when I originally downloaded the project, Unity Hub wouldn't let me open it unless I downloaded and installed 2020.1 first, but it's all good now. Thanks!
Thank you! I was scared that I was going to have to abandon Post Processing for my project, but all I needed to do was to update the Post Processing Package.