static bool SetCompatibleWithPlatform(PluginImporter plugin, BuildTarget platform, bool enable) { if (plugin.GetCompatibleWithPlatform(platform) == enable) { return false; } plugin.SetCompatibleWithPlatform(platform, enable); return true; }
private static bool IsCompatible(PluginImporter imp, string platformName) { return(!string.IsNullOrEmpty(imp.assetPath) && (imp.GetCompatibleWithPlatform(platformName) || (imp.GetCompatibleWithAnyPlatform() && !imp.GetExcludeFromAnyPlatform(platformName))) && imp.ShouldIncludeInBuild()); }
private static bool IsCompatible(PluginImporter imp, string platformName) { return(!string.IsNullOrEmpty(imp.assetPath) && (imp.GetCompatibleWithPlatform(platformName) || imp.GetCompatibleWithAnyPlatform())); }
private static bool IsCompatible(PluginImporter imp, string buildTargetGroup, string buildTarget) { return(!string.IsNullOrEmpty(imp.assetPath) && (imp.GetCompatibleWithPlatform(buildTargetGroup, buildTarget) || imp.GetCompatibleWithAnyPlatform())); }