コード例 #1
0
ファイル: VRPostProcess.cs プロジェクト: demelev/projectHL
 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];
 }
コード例 #2
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];
 }