Ejemplo n.º 1
0
	static bool SetCompatibleWithPlatform(PluginImporter plugin, BuildTarget platform, bool enable) {
		if (plugin.GetCompatibleWithPlatform(platform) == enable) {
			return false;
		}

		plugin.SetCompatibleWithPlatform(platform, enable);
		return true;
	}
Ejemplo n.º 2
0
 private static bool IsCompatible(PluginImporter imp, string platformName)
 {
     return(!string.IsNullOrEmpty(imp.assetPath) && (imp.GetCompatibleWithPlatform(platformName) || (imp.GetCompatibleWithAnyPlatform() && !imp.GetExcludeFromAnyPlatform(platformName))) && imp.ShouldIncludeInBuild());
 }
Ejemplo n.º 3
0
 private static bool IsCompatible(PluginImporter imp, string platformName)
 {
     return(!string.IsNullOrEmpty(imp.assetPath) && (imp.GetCompatibleWithPlatform(platformName) || imp.GetCompatibleWithAnyPlatform()));
 }
Ejemplo n.º 4
0
 private static bool IsCompatible(PluginImporter imp, string buildTargetGroup, string buildTarget)
 {
     return(!string.IsNullOrEmpty(imp.assetPath) && (imp.GetCompatibleWithPlatform(buildTargetGroup, buildTarget) || imp.GetCompatibleWithAnyPlatform()));
 }