docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GoogleAndroidProviderBuildProcess

    The Android provider build processor ensures that any custom configuration that the user creates is correctly passed on to the provider implementation at runtime.

    Custom configuration instances that are stored in EditorBuildSettings are not copied to the target build because they are considered unreferenced assets. To get them to the runtime, they must be serialized to the built app and deserialized at runtime. Previously, this as a manual process that required the implementor to manually serialize to some location that can then be read from to deserialize at runtime. With the new PlayerSettings Preloaded Assets API, you can now add your asset to the preloaded list and have it be instantiated at app launch.

    Note: Preloaded assets are only notified with Awake, so anything you want or need to do with the asset after launch needs to be handled in the Android provider build process.

    For more information about the APIs used, see:

    • EditorBuildSettings
    • PlayerSettings.GetPreloadedAssets
    • PlayerSettings.SetPreloadedAssets
    • IPostGenerateGradleAndroidProject
    Inheritance
    object
    GoogleAndroidProviderBuildProcess
    Implements
    IPreprocessBuildWithReport
    IPostprocessBuildWithReport
    IPostGenerateGradleAndroidProject
    IOrderedCallback
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.AdaptivePerformance.Google.Android.Editor
    Assembly: Unity.AdaptivePerformance.Google.Android.Editor.dll
    Syntax
    public class GoogleAndroidProviderBuildProcess : IPreprocessBuildWithReport, IPostprocessBuildWithReport, IPostGenerateGradleAndroidProject, IOrderedCallback

    Properties

    callbackOrder

    Override of UnityEditor.Build.IPreprocessBuildWithReport and UnityEditor.Build.IPostprocessBuildWithReport.

    Declaration
    public int callbackOrder { get; }
    Property Value
    Type Description
    int

    Methods

    OnPostGenerateGradleAndroidProject(string)

    Implementation of UnityEditor.Android.IPostGenerateGradleAndroidProject

    Declaration
    public void OnPostGenerateGradleAndroidProject(string path)
    Parameters
    Type Name Description
    string path

    The path to the root of the Unity library Gradle project.

    OnPostprocessBuild(BuildReport)

    Override of UnityEditor.Build.IPostprocessBuildWithReport.

    Declaration
    public void OnPostprocessBuild(BuildReport report)
    Parameters
    Type Name Description
    BuildReport report

    Build report.

    OnPreprocessBuild(BuildReport)

    Override of UnityEditor.Build.IPreprocessBuildWithReport.

    Declaration
    public void OnPreprocessBuild(BuildReport report)
    Parameters
    Type Name Description
    BuildReport report

    Build report.

    Implements

    IPreprocessBuildWithReport
    IPostprocessBuildWithReport
    IPostGenerateGradleAndroidProject
    IOrderedCallback
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)