-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,5 @@ sysinfo.txt | |
|
||
# Crashlytics generated file | ||
crashlytics-build.properties | ||
|
||
Assets/ros_config.yaml |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// C# example. | ||
using UnityEditor; | ||
using System.Diagnostics; | ||
|
||
public class ScriptBatch | ||
{ | ||
[MenuItem("ROS/Windows Build")] | ||
public static void BuildGame() | ||
{ | ||
// Get filename. | ||
string path = EditorUtility.SaveFolderPanel("Choose Location of Built Game", "", ""); | ||
string[] levels = new string[] { "Assets/Scenes/RosExample.unity"}; | ||
|
||
// Build player. | ||
BuildPipeline.BuildPlayer(levels, path + "/BuiltGame.exe", BuildTarget.StandaloneWindows64, BuildOptions.None); | ||
|
||
// Copy a file from the project folder to the build folder, alongside the built game. | ||
FileUtil.CopyFileOrDirectory("Assets/Resources/start_player.py", path + "/start_player.py"); | ||
FileUtil.CopyFileOrDirectory("Assets/Resources/start_player.bat", path + "/start_player.bat"); | ||
|
||
} | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.