Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

PluginImporter.GetImporters

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static PluginImporter[] GetImporters(BuildTarget platform);

Parameters

Parameter Description
platform The target platform.

Returns

PluginImporter[] An array of the importers of the compatible plug-ins.

Description

Gets the importers of all the plug-ins that are compatible with a build target.

The array includes plug-ins that are compatible with the platform directly, and plug-ins that are compatible with any platform and don't exclude it. If two plug-ins build to the same path and one of them is overridable, the array includes only the one that isn't overridable.


Declaration

public static PluginImporter[] GetImporters(string platformName);

Parameters

Parameter Description
platformName The name of the target platform.

Returns

PluginImporter[] An array of the importers of the compatible plug-ins.

Description

Gets the importers of all the plug-ins that are compatible with a platform, identified by name.

The array includes plug-ins that are compatible with the platform directly, and plug-ins that are compatible with any platform and don't exclude it. If two plug-ins build to the same path and one of them is overridable, the array includes only the one that isn't overridable.


Declaration

public static PluginImporter[] GetImporters(BuildTargetGroup buildTargetGroup, BuildTarget buildTarget);

Parameters

Parameter Description
buildTargetGroup The build target group.
buildTarget The build target.

Returns

PluginImporter[] An array of the importers of the compatible plug-ins.

Description

Gets the importers of all the plug-ins that are compatible with a build target group and build target.

The array includes plug-ins that are compatible with the build target directly, and plug-ins that are compatible with any platform and don't exclude it.


Declaration

public static PluginImporter[] GetImporters(string buildTargetGroup, string buildTarget);

Parameters

Parameter Description
buildTargetGroup The name of the build target group.
buildTarget The name of the build target.

Returns

PluginImporter[] An array of the importers of the compatible plug-ins.

Description

Gets the importers of all the plug-ins that are compatible with a build target group and build target, identified by name.

The array includes plug-ins that are compatible with the build target directly, and plug-ins that are compatible with any platform and don't exclude it.