From dbfe9eac8b5d8f1895922dd04948fb876f5facf4 Mon Sep 17 00:00:00 2001 From: Koji Hasegawa Date: Mon, 12 Jun 2023 00:00:18 +0900 Subject: [PATCH] Mod README.md --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cda8e5d..7c22982 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,9 @@ public class MyTestClass } ``` +> **Note** +> In batchmode, open `GameView` window. + #### GameViewResolution `GameViewResolutionAttribute` is an NUnit test attribute class to set custom resolution to `GameView` before run test. @@ -53,15 +56,23 @@ using TestHelper.Attributes; [TestFixture] public class MyTestClass { - [Test] + [UnityTest] [GameViewResolution(640, 480, "VGA")] - public void MyTestMethod() + public IEnumerator MyTestMethod() { + yield return null; // wait for one frame to apply resolution. + // e.g., test using GraphicRaycaster. } } ``` +> **Warning** +> Wait for one frame to apply resolution. + +> **Note** +> In batchmode, open `GameView` window. + #### IgnoreBatchMode `IgnoreBatchModeAttribute` is an NUnit test attribute class to skip test execution when run tests with `-batchmode` from the commandline.