Skip to content

Commit

Permalink
Merge pull request #50 from nowsprinting/chore/remove_thread_check
Browse files Browse the repository at this point in the history
Remove check for caller thread
  • Loading branch information
nowsprinting committed Nov 21, 2023
2 parents 103e027 + 41ce5b4 commit 83a2fe8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions RuntimeInternals/ScreenshotHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ private static string DefaultFilename(string callerMemberName)
yield break;
}

if (Thread.CurrentThread.ManagedThreadId != 1)
{
Debug.LogWarning("Must be called from the main thread.");
yield break;
// Note: This is not the case since it is a coroutine.
}

if (directory != null)
{
directory = Path.GetFullPath(directory);
Expand Down

0 comments on commit 83a2fe8

Please sign in to comment.