public CaptureScreenshotSyncHelper ( string filenameBase ) : IEnumerator | ||
filenameBase | string | |
Результат | IEnumerator |
public IEnumerator CaptureScreenshotSyncHelper(string filenameBase)
{
yield return new WaitForEndOfFrame(); // Must capture at end of frame to assure we correctly capture world-space UIs
// Do the rest purely synchronously
var enumerator = CaptureScreenshotAsyncHelper(filenameBase, /*async*/false);
while (enumerator.MoveNext()) { }
}