Skip to content

Commit

Permalink
Fix label of secondsToErrorForNoInteractiveComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Dec 19, 2024
1 parent cc88920 commit 3c6950b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Editor/Localization/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,12 @@ msgid "Delay time between random operations [ms]"
msgstr "ランダム操作ごとの遅延時間[ミリ秒]"

# timeout
msgid "Secs Searching Components"
msgstr "コンポーネント探索時間[秒]"
msgid "No-Element Timeout [sec]"
msgstr "要素なしタイムアウト[秒]"

# timeout tooltip
msgid "Seconds to determine that an error has occurred when an object that can be interacted with does not exist"
msgstr "インタラクティブな要素を探索する秒数を指定します。探索時間がこれを超えるとエラーを発生させます"
msgid "Abort this Agent when the interactable UI/2D/3D element does not appear for the specified seconds."
msgstr "指定した秒数の間、対話可能なUI/2D/3D要素が出現しなければ、Agentの実行を中断します"

# uGUI click and hold operator options
msgid "Touch and Hold Operator Options"
Expand Down
4 changes: 2 additions & 2 deletions Editor/UI/Agents/UGUIMonkeyAgentEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public class UGUIMonkeyAgentEditor : UnityEditor.Editor
private GUIContent _delayMillisGUIContent;

private static readonly string s_timeout =
L10n.Tr("Secs Searching Components");
L10n.Tr("No-Element Timeout [sec]");

private static readonly string s_timeoutToolTip = L10n.Tr(
"Seconds to determine that an error has occurred when an object that can be interacted with does not exist"
"Abort this Agent when the interactable UI/2D/3D element does not appear for the specified seconds."
);

private SerializedProperty _timeoutProp;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ An instance of this Agent (.asset file) can contain the following.
<dl>
<dt>Lifespan</dt><dd>Duration of random operation execution time in secounds. If 0 is specified, the operation is almost unlimited (TimeSpan.MaxValue). With this setting, neither Autopilot nor the app itself will exit when the Agent exits. It will not do anything until the next Scene switch</dd>
<dt>Delay</dt><dd>Wait interval [milliseconds] between random operations</dd>
<dt>Secs Searching Components</dt><dd>Seconds to determine that an error has occurred when an object that can be interacted with does not exist</dd>
<dt>No-Element Timeout</dt><dd>Abort this Agent when the interactable UI/2D/3D element does not appear for the specified seconds</dd>
<dt>Touch and Hold Millis</dt><dd>Delay time for touch-and-hold [ms]</dd>
<dt>Enable Gizmos</dt><dd>Show Gizmos on GameView during running monkey test if true</dd>
</dl>
Expand Down
2 changes: 1 addition & 1 deletion README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ uGUIのコンポーネントをランダムに操作するAgentです。
<dl>
<dt>実行時間</dt><dd>ランダム操作の実行時間を秒で指定します。0を指定するとほぼ無制限(TimeSpan.MaxValue)に動作します。この設定でAgentが終了してもオートパイロットおよびアプリ自体は終了しません。次にSceneが切り替わるまでなにもしない状態になります</dd>
<dt>操作間隔</dt><dd>ランダム操作間のウェイト間隔をミリ秒で指定します</dd>
<dt>コンポーネント探索時間</dt><dd>インタラクティブな要素を探索する秒数を指定します。探索時間がこれを超えるとエラーを発生させます</dd>
<dt>要素なしタイムアウト</dt><dd>指定した秒数の間、対話可能なUI/2D/3D要素が出現しなければ、Agentの実行を中断します</dd>
<dt>タッチ&ホールド時間</dt><dd>タッチ&ホールドの継続時間をミリ秒で指定します</dd>
<dt>Gizmo を有効</dt><dd>もし有効ならモンキー操作中の GameView に Gizmo を表示します。もし無効なら GameView に Gizmo を表示しません</dd>
</dl>
Expand Down
3 changes: 2 additions & 1 deletion Runtime/Agents/UGUIMonkeyAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public class UGUIMonkeyAgent : AbstractAgent
public int delayMillis = 200;

/// <summary>
/// Seconds to determine that an error has occurred when an object that can be interacted with does not exist
/// No-Element Timeout [sec].
/// Abort this Agent when the interactable UI/2D/3D element does not appear for the specified seconds.
/// </summary>
public int secondsToErrorForNoInteractiveComponent = 5;

Expand Down

0 comments on commit 3c6950b

Please sign in to comment.