- Home /
Application.CaptureScreenshot results in black image depending on quality
Hi, I've been using the Application.CaptureScreenshot for a while successfully, but I recently added the folowing line and all I can capture now is a black image. Does anyone know why this might be happening?
QualitySettings.SetQualityLevel(5, false);
I simply create a screenshot when the player presses L and R on an Xbox 360 controller:
if (Input.GetButton ("ButtonL") && Input.GetButton ("ButtonR"))
Application.CaptureScreenshot(Application.dataPath + "Screenshot.png", 1);
If I lower the quality like so:
QualitySettings.SetQualityLevel(1, false);
I can capture a screenshot correctly.
Answer by luxon3d · Oct 18, 2015 at 09:12 AM
disable in quality settings antialiasing and be work all good
Answer by ksiUnity · Sep 28, 2015 at 06:15 AM
The reason for this could be that setting the quality level to 5 results in a very high res image that takes time to render and that is why you are seeing a black image.
Your answer
Follow this Question
Related Questions
Take a Good Quality Screenshot with AR 2 Answers
Question about screenshots and facebook integration 1 Answer
Preview of screenshot in unity 2 Answers
RenderTexture to Texture2D 4 Answers