You normally need to use this command with the -projectPath argument. This option only exports whole folders at a time. In this example, exportAssetPath is a folder (relative to the Unity project root) to export from the Unity project, and exportFileName is the package name. The method you execute must be defined as static.Įxport a package, given a path (or set of given paths). To use -executeMethod, you need to place the enclosing script in an Editor folder. To pass parameters, add them to the command line and retrieve them inside the function using. To return an error from the command line process, either throw an exception which causes Unity to exit with return code 1, or call EditorApplication.Exit with a non-zero return code. You can use this for tasks such as continuous integration, performing Unit Tests, making builds or preparing data. More info See in Glossary at startup.Įxecute the static method as soon as Unity opens the project, and after the optional Asset server update is complete. Performed with an external tool, such as Blender or Autodesk Maya. Note: If you disable the update of any assembly that needs updating, you might get errors at compile time, run time, or both, that are hard to track.ĭisable Graphics Processing Unit (GPU) skinning The process of binding bone joints to the vertices of a character’s mesh or ‘skin’. It’s also useful when you import assemblies which don’t access any Unity APIs (for example, if you have built some or all of your source code outside of Unity, and you want to import the resulting assemblies into your Unity project). This argument is useful if you want to import assemblies that access a Unity API which doesn’t need updating. Use this to avoid unnecessary API Updater overhead when you import assemblies. warning: Ignoring assembly as requested by command line parameter.”). If you list an assembly in the -disable-assembly-updater command line parameter (or if you don’t specify assemblies), Unity logs the following message to Editor.log: Example 2 ignores A1.dll, no matter what folder it is stored in, and ignores A2.dll only if it is stored under subfolder folder: Unity.exe -disable-assembly-updater A1.dll subfolder/A2.dllĮxample 2 has two assembly names, one with a pathname. The space-separated list of assembly names is optional: pass the command line options without any assembly names to ignore all assemblies, as in example 1. Specify a space-separated list of assembly names as parameters for Unity to ignore on automatic updates. CommandĬreate an empty project at the given path. This page lists the command line arguments you can use to launch and configure a Unity Editor instance. You can run the Editor and build Unity applications with additional commands and information on startup. For more information about how to find your Editor’s location path, see Install and uninstall Editor versions. Adjust the path in the command if you use an Editor installed in a different location. Note: The above instructions assume the relevant Editor is installed in the default location through the Unity Hub. When you launch Unity like this, it receives commands and information on startup, which can be useful for test suites, automated builds and other production tasks. "C:\Program Files\Unity\Hub\Editor\\Editor\Unity.exe" -projectPath "" On Windows, type the following into the Command Prompt to launch Unity: On Linux, type the following into the Terminal to launch Unity: Applications/Unity/Hub/Editor//Unity.app/Contents/MacOS/Unity -projectPath On macOS, type the following into the Terminal to launch Unity:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |