PlayerSettings.Android.reportGooglePlayAppDependencies
Declaration
public static bool reportGooglePlayAppDependencies;Описание
Указывает, следить ли за зависимостями приложений для проверки хранилища Google Play.
using UnityEngine; using UnityEditor; using UnityEditor.Build;
public class ReportGooglePlayAppDependenciesSample : MonoBehaviour { [MenuItem("Build/Report Google Play App Dependencies Sample")] public static void BuildReportGooglePlayAppDependenciesSample() { PlayerSettings.SetScriptingBackend(NamedBuildTarget.Android, ScriptingImplementation.IL2CPP); PlayerSettings.Android.targetArchitectures = AndroidArchitecture.ARM64;
//Set reportGooglePlayAppDependencies to true PlayerSettings.Android.reportGooglePlayAppDependencies = true;
BuildPlayerOptions options = new BuildPlayerOptions(); options.scenes = new[] { "Assets/Scenes/SampleScene.unity" }; options.locationPathName = "Build/AndroidBuild.apk"; options.target = BuildTarget.Android; options.targetGroup = BuildTargetGroup.Android; BuildPipeline.BuildPlayer(options); } }