Exemplo n.º 1
0
        private static bool IsCloudAnchorModeEnabled()
        {
            foreach (ARCoreExtensionsConfig config in
                     AndroidDependenciesHelper.GetAllSessionConfigs().Keys)
            {
                if (config.CloudAnchorMode != CloudAnchorMode.Disabled)
                {
                    return(true);
                }
            }

            return(false);
        }
        /// <summary>
        /// Callback before the build is started.</para>
        /// </summary>
        /// <param name="report">A report containing information about the build,
        /// such as its target platform and output path.</param>
        public void OnPreprocessBuild(BuildReport report)
        {
            UnityEditor.BuildTarget buildTarget = report.summary.platform;
            if (DependentModulesManager.GetModules().Count == 0)
            {
                return;
            }

            CheckCompatibilityWithAllSessionConfigs(
                ARCoreExtensionsProjectSettings.Instance,
                AndroidDependenciesHelper.GetAllSessionConfigs(),
                buildTarget);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Callback before the build is started.</para>
        /// </summary>
        /// <param name="report">A report containing information about the build,
        /// such as its target platform and output path.</param>
        public void OnPreprocessBuild(BuildReport report)
        {
            if (report.summary.platform == BuildTarget.Android)
            {
                if (GetModules().Count == 0)
                {
                    return;
                }

                CheckCompatibilityWithAllSesssionConfigs(
                    ARCoreExtensionsProjectSettings.Instance,
                    AndroidDependenciesHelper.GetAllSessionConfigs());
            }
        }