GetImporters
Gets the importers of all the plug-ins that are compatible with a platform, identified by name.
阅读时间2 分钟最后更新于 21 天前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
GetImporters(string)
Gets the importers of all the plug-ins that are compatible with a platform, identified by name.
public static PluginImporter[] GetImporters(string platformName)
Parameters
The name of the target platform.
Returns
Type | Description |
|---|---|
| PluginImporter[] | An array of the importers of the compatible plug-ins. |
Remarks
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.
GetImporters(BuildTarget)
Gets the importers of all the plug-ins that are compatible with a build target.
public static PluginImporter[] GetImporters(BuildTarget platform)
Parameters
The target platform.
Returns
Type | Description |
|---|---|
| PluginImporter[] | An array of the importers of the compatible plug-ins. |
Remarks
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.
GetImporters(string, string)
Gets the importers of all the plug-ins that are compatible with a build target group and build target, identified by name.
public static PluginImporter[] GetImporters(string buildTargetGroup, string buildTarget)
Parameters
Returns
Type | Description |
|---|---|
| PluginImporter[] | An array of the importers of the compatible plug-ins. |
Remarks
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.
GetImporters(BuildTargetGroup, BuildTarget)
Gets the importers of all the plug-ins that are compatible with a build target group and build target.
public static PluginImporter[] GetImporters(BuildTargetGroup buildTargetGroup, BuildTarget buildTarget)
Parameters
Returns
Type | Description |
|---|---|
| PluginImporter[] | An array of the importers of the compatible plug-ins. |
Remarks
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.