![]() You can use the path to locate the exported Xcode Project to perform additional preprocessing before Xcode is called to complete the build process. ![]() ![]() For iOS Projects, the string contains the path to the exported Xcode project.For non-iOS build targets, the string contains the path to the exported Project.Public static void PostExport(string exportPath) To use the post-export method, create a public static method in your Unity Project that contains the code you want executed after the Unity Editor exports your Project. To use a pre-export method, create a public static method in your Unity Project that contains the code you want executed before the Unity Editor exports your project but after the Unity Editor script compilation phase. You set pre- and post-export methods in the build target’s Advanced Options. To compile your code locally, wrap your pre- and post-export methods in an #if UNITY_CLOUD_BUILD block. ![]() Important: The class is only available when running in Cloud Build (as in, not locally). ![]() If the Editor folder doesn’t exist in your directory, create it. These methods must exist as code in your Project in the Assets/Editor folder. The pre- and post-export methods let you trigger actions before and after your Unity Project is built. Script hooks allow you to run custom scripts or Editor code before the build starts or after it is completed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |