- Home /
Question by
Curyous · Jul 08, 2014 at 06:32 PM ·
buildeditor-scriptingmenuitem
How do you run File->Build Settings... from code?
I need to execute the menu item rather than just use BuildPipeline.BuildPlayer()
because I want to export to Android, which is not available in BuildOptions
.
I've tried
EditorApplication.ExecuteMenuItem("File/Build Settings...");
EditorApplication.ExecuteMenuItem("File/Build Settings...%#b");
but just got "ExecuteMenuItem failed because there is no menu item named 'File/'"
How do I execute that menu item?
Comment
What's wrong with calling BuildPipeline.BuildPlayer with BuildTarget.Android?
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Variables modified on other scripts through a Editor Script reset on Play? 1 Answer
Build from script 3 Answers
Unity Editor - validating GameObjects 0 Answers
(Editor Scripting) Is it possible to generate MenuItems? 2 Answers