I am getting 2 warnings in Unity when trying to make screenshot:
Ignoring depth surface load action as it is memoryless
Ignoring depth surface store action as it is memoryless
I have found this thread but it is referencing to Unity Remote which I am not using.
Basic code to reproduce the warning:
public class test : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
StartCoroutine(TakeScreenshotUI());
}
public IEnumerator TakeScreenshotUI()
{
yield return new WaitForEndOfFrame();
var tex = ScreenCapture.CaptureScreenshotAsTexture();
}
}
I am getting same warnings in Unity 2019.2 and 2020.1.2.
Can someone help me figure out what the problem is?
UPDATE: warning is appearing only on MacOS with Metal Graphic API
Unity spits out a lot of warnings. I would just ignore them if your code is working.