Modify Gradle project files with the Android Project Configuration Manager
Use the Android Project Configuration Manager to set up and modify the contents of your custom Gradle project files.
읽는 시간 1분최근 업데이트: 21일 전
You can use Android Project Configuration Manager to modify the contents of custom gradle project files in your Android project. You cannot modify the contents of the default gradle project files and modules with Android Project Configuration Manager. However, you can create custom modules to set up custom Gradle project files and modify them as required.
unityLibrarylauncherThe entry point for the Android Project Configuration Manager is the OnModifyAndroidProjectFiles method in the AndroidProjectFilesModifier interface. This means to use the Android Project Configuration Manager, first create a class that implements and declares a body for . The following code example shows how to do this.
AndroidProjectFilesModifierOnModifyAndroidProjectFilesusing UnityEditor.Android;public class ModifyProjectScript : AndroidProjectFilesModifier{ public override void OnModifyAndroidProjectFiles(AndroidProjectFiles projectFiles) { }}