Skip to content

Commit

Permalink
Fix expressions in comment and READMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Oct 25, 2024
1 parent e8e8b27 commit 40655a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -583,12 +583,15 @@ AddButton("Launch autopilot", clicked: () =>
#if UNITY_EDITOR
const string Path = "Assets/Path/To/AutopilotSettings.asset";
#else
const string Path = "Path/To/AutopilotSettings"; // without the .asset extension
const string Path = "Path/To/AutopilotSettings"; // relative path from Resources and without the .asset extension.
#endif
Launcher.LaunchAutopilotAsync(Path).Forget();
});
```

> [!NOTE]
> `Launcher.LaunchAutopilotAsync` can also use an overload that passes an `AutopilotSettings` instance as an argument.

### How to launch autopilot on player build

Expand Down
5 changes: 4 additions & 1 deletion README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,12 +587,15 @@ AddButton("Launch autopilot", clicked: () =>
#if UNITY_EDITOR
const string Path = "Assets/Path/To/AutopilotSettings.asset";
#else
const string Path = "Path/To/AutopilotSettings"; // 拡張子(.asset)は不要です
const string Path = "Path/To/AutopilotSettings"; // Resourcesからの相対パスを指定。拡張子(.asset)は不要です
#endif
Launcher.LaunchAutopilotAsync(Path).Forget();
});
```

> [!NOTE]
> `Launcher.LaunchAutopilotAsync` は、引数に `AutopilotSettings` インスタンスを渡すオーバーロードも使用できます。

### 起動方法

Expand Down
1 change: 1 addition & 0 deletions Runtime/Settings/Arguments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class Arguments

/// <summary>
/// Launch autopilot on player build, And specify the autopilot settings file path.
/// This argument is only used in player builds.
/// </summary>
public virtual IArgument<string> LaunchAutopilotSettings => new Argument<string>("LAUNCH_AUTOPILOT_SETTINGS");

Expand Down

0 comments on commit 40655a7

Please sign in to comment.