예제 #1
0
 private static IEnumerable<PluginDesc> RegisterPlugins(BuildTarget target)
 {
     if ((target == BuildTarget.Android) && PlayerSettings.virtualRealitySupported)
     {
         PluginDesc desc = new PluginDesc();
         string str = EditorApplication.applicationContentsPath + "/VR/" + BuildPipeline.GetBuildTargetName(target);
         desc.pluginPath = Path.Combine(str, "ovrplugin.aar");
         return new PluginDesc[] { desc };
     }
     return new PluginDesc[0];
 }
 private static IEnumerable<PluginDesc> RegisterPlugins(BuildTarget target)
 {
     if (((target == BuildTarget.Android) && AdvertisementSettings.enabled) && AdvertisementSettings.IsPlatformEnabled(RuntimePlatform.Android))
     {
         PluginDesc desc = new PluginDesc {
             pluginPath = Path.Combine(extensionPath, "Editor/Resources/Android/builds/unity-ads.aar")
         };
         return new PluginDesc[] { desc };
     }
     return new PluginDesc[0];
 }