Modify Gradle project files with Gradle template files
Use Gradle templates to modify the contents of Gradle project files
読み終わるまでの所要時間 1 分最終更新 24日前
To have some control over the format and contents of Gradle project files, you can override Unity's default templates with your own custom template. To do this:
- Go to Edit > to open the Project Settings window.Project Settings
?
- Select the Player tab, then open Android Player Settings
- In the Publishing Settings section, enable the checkbox that corresponds to the Gradle project file type you want to create a custom template for. This creates a Gradle project template file and displays the path to the file.
- Modify the template file to control the final format and contents of the final Gradle project file.
To verify that your template modifications give the result that you expect, export your project and view the final Gradle project files in the resulting project.