# PluginImporter

> Represents a plugin importer.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule
* **Inherits from:** [AssetImporter](/engine/6000.7/script-reference/unityeditor/assetimporter.md)

```csharp
public sealed class PluginImporter : AssetImporter
```

## Constructors

| Constructor                                                                            | Description  |
| -------------------------------------------------------------------------------------- | ------------ |
| [PluginImporter()](/engine/6000.7/script-reference/unityeditor/pluginimporter/ctor.md) | Constructor. |

## Properties

| Property                                                                                             | Description                                                                                                                                                                        |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DefineConstraints](/engine/6000.7/script-reference/unityeditor/pluginimporter/defineconstraints.md) | Allows you to specify a list of #define directives which controls whether your plug-in should be included.                                                                         |
| [isNativePlugin](/engine/6000.7/script-reference/unityeditor/pluginimporter/isnativeplugin.md)       | Is plugin native or managed? Note: C++ libraries with CLR support are treated as native plugins, because Unity cannot load such libraries. You can still access them via P/Invoke. |
| [isPreloaded](/engine/6000.7/script-reference/unityeditor/pluginimporter/ispreloaded.md)             | Is a native plugin loaded during startup or on demand?                                                                                                                             |

## Methods

| Method                                                                                                                           | Description                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| [ClearSettings](/engine/6000.7/script-reference/unityeditor/pluginimporter/clearsettings.md)                                     | Clear all plugin settings and set the compatability with **Any Platform** to true.                                                             |
| [GetCompatibleWithAnyPlatform](/engine/6000.7/script-reference/unityeditor/pluginimporter/getcompatiblewithanyplatform.md)       | Checks whether a plugin is flagged as being compatible with **Any Platform**.                                                                  |
| [GetCompatibleWithEditor](/engine/6000.7/script-reference/unityeditor/pluginimporter/getcompatiblewitheditor.md)                 | Is plugin compatible with editor.                                                                                                              |
| [GetCompatibleWithPlatform](/engine/6000.7/script-reference/unityeditor/pluginimporter/getcompatiblewithplatform.md)             | Is plugin compatible with specified platform.                                                                                                  |
| [GetEditorData](/engine/6000.7/script-reference/unityeditor/pluginimporter/geteditordata.md)                                     | Returns editor specific data for specified key.                                                                                                |
| [GetExcludeEditorFromAnyPlatform](/engine/6000.7/script-reference/unityeditor/pluginimporter/getexcludeeditorfromanyplatform.md) | Is **Editor** excluded when **Any Platform** is set to true.                                                                                   |
| [GetExcludeFromAnyPlatform](/engine/6000.7/script-reference/unityeditor/pluginimporter/getexcludefromanyplatform.md)             | Is platform excluded when **Any Platform** set to true.                                                                                        |
| [GetIcon](/engine/6000.7/script-reference/unityeditor/pluginimporter/geticon.md)                                                 | Gets the custom icon to associate with a MonoScript at import time.                                                                            |
| [GetIsOverridable](/engine/6000.7/script-reference/unityeditor/pluginimporter/getisoverridable.md)                               | Identifies whether or not this plugin will be overridden if a plugin of the same name is placed in your project folder.                        |
| [GetPlatformData](/engine/6000.7/script-reference/unityeditor/pluginimporter/getplatformdata.md)                                 | Get platform specific data.                                                                                                                    |
| [SetCompatibleWithAnyPlatform](/engine/6000.7/script-reference/unityeditor/pluginimporter/setcompatiblewithanyplatform.md)       | Sets compatibility with **Any Platform**.                                                                                                      |
| [SetCompatibleWithEditor](/engine/6000.7/script-reference/unityeditor/pluginimporter/setcompatiblewitheditor.md)                 | Sets compatibility with any editor.                                                                                                            |
| [SetCompatibleWithPlatform](/engine/6000.7/script-reference/unityeditor/pluginimporter/setcompatiblewithplatform.md)             | Sets compatibility with the specified platform.                                                                                                |
| [SetEditorData](/engine/6000.7/script-reference/unityeditor/pluginimporter/seteditordata.md)                                     | Sets editor specific data.                                                                                                                     |
| [SetExcludeEditorFromAnyPlatform](/engine/6000.7/script-reference/unityeditor/pluginimporter/setexcludeeditorfromanyplatform.md) | Exclude **Editor** from compatible platforms when **Any Platform** is set to true.                                                             |
| [SetExcludeFromAnyPlatform](/engine/6000.7/script-reference/unityeditor/pluginimporter/setexcludefromanyplatform.md)             | Exclude platform from compatible platforms when **Any Platform** is set to true.                                                               |
| [SetIcon](/engine/6000.7/script-reference/unityeditor/pluginimporter/seticon.md)                                                 | Sets the custom icon to associate with a [MonoScript](/engine/6000.7/script-reference/unityeditor/monoscript.md) imported by a managed plugin. |
| [SetIncludeInBuildDelegate](/engine/6000.7/script-reference/unityeditor/pluginimporter/setincludeinbuilddelegate.md)             | Sets the delegate function to be called by ShouldIncludeInBuild.                                                                               |
| [SetPlatformData](/engine/6000.7/script-reference/unityeditor/pluginimporter/setplatformdata.md)                                 | Sets platform specific data.                                                                                                                   |
| [ShouldIncludeInBuild](/engine/6000.7/script-reference/unityeditor/pluginimporter/shouldincludeinbuild.md)                       | Identifies whether or not this plugin should be included in the current build target.                                                          |

## Static Methods

| Method                                                                                           | Description                                         |
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------- |
| [GetAllImporters](/engine/6000.7/script-reference/unityeditor/pluginimporter/getallimporters.md) | Returns all plugin importers for all platforms.     |
| [GetImporters](/engine/6000.7/script-reference/unityeditor/pluginimporter/getimporters.md)       | Returns all plugin importers for specfied platform. |

## Delegates

| Delegate                                                                                                                      | Description                                         |
| ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [PluginImporter.IncludeInBuildDelegate](/engine/6000.7/script-reference/unityeditor/pluginimporter/includeinbuilddelegate.md) | Delegate to be used with SetIncludeInBuildDelegate. |

## Inheritance

**Inherited Members:**

* [AssetImporter.GetImportLog(string)](/engine/6000.7/script-reference/unityeditor/assetimporter/getimportlog.md)
* [AssetImporter.SetAssetBundleNameAndVariant(string, string)](/engine/6000.7/script-reference/unityeditor/assetimporter/setassetbundlenameandvariant.md)
* [AssetImporter.GetAtPath(string)](/engine/6000.7/script-reference/unityeditor/assetimporter/getatpath.md)
* [AssetImporter.SaveAndReimport()](/engine/6000.7/script-reference/unityeditor/assetimporter/saveandreimport.md)
* [AssetImporter.AddRemap(SourceAssetIdentifier, Object)](/engine/6000.7/script-reference/unityeditor/assetimporter/addremap.md)
* [AssetImporter.RemoveRemap(SourceAssetIdentifier)](/engine/6000.7/script-reference/unityeditor/assetimporter/removeremap.md)
* [AssetImporter.GetExternalObjectMap()](/engine/6000.7/script-reference/unityeditor/assetimporter/getexternalobjectmap.md)
* [AssetImporter.SupportsRemappedAssetType(Type)](/engine/6000.7/script-reference/unityeditor/assetimporter/supportsremappedassettype.md)
* [AssetImporter.assetPath](/engine/6000.7/script-reference/unityeditor/assetimporter/assetpath.md)
* [AssetImporter.importSettingsMissing](/engine/6000.7/script-reference/unityeditor/assetimporter/importsettingsmissing.md)
* [AssetImporter.userData](/engine/6000.7/script-reference/unityeditor/assetimporter/userdata.md)
* [AssetImporter.assetBundleName](/engine/6000.7/script-reference/unityeditor/assetimporter/assetbundlename.md)
* [AssetImporter.assetBundleVariant](/engine/6000.7/script-reference/unityeditor/assetimporter/assetbundlevariant.md)
* [Object.GetEntityId()](/engine/6000.7/script-reference/unityengine/object/getentityid.md)
* [Object.GetHashCode()](/engine/6000.7/script-reference/unityengine/object/gethashcode.md)
* [Object.InstantiateAsync\<T>(T)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.Instantiate(Object, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion\))
* [Object.Instantiate(Object, Vector3, Quaternion, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion-transform\))
* [Object.Instantiate(Object)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object\))
* [Object.Instantiate(Object, Scene)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-scene\))
* [Object.Instantiate\<T>(T, InstantiateParameters)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, InstantiateParameters)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate(Object, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform\))
* [Object.Instantiate(Object, Transform, bool)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform-bool\))
* [Object.Instantiate\<T>(T)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform, bool)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Destroy(Object, float)](/engine/6000.7/script-reference/unityengine/object/destroy.md)
* [Object.DestroyImmediate(Object, bool)](/engine/6000.7/script-reference/unityengine/object/destroyimmediate.md)
* [Object.FindObjectsByType(Type)](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type\))
* [Object.FindObjectsByType(Type, FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectsinactive\))
* [Object.DontDestroyOnLoad(Object)](/engine/6000.7/script-reference/unityengine/object/dontdestroyonload.md)
* [Object.FindAnyObjectByType\<T>()](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(\))
* [Object.FindAnyObjectByType\<T>(FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(findobjectsinactive\))
* [Object.FindObjectsByType\<T>()](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(\))
* [Object.FindObjectsByType\<T>(FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectsinactive\))
* [Object.FindAnyObjectByType(Type)](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type\))
* [Object.FindAnyObjectByType(Type, FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type-findobjectsinactive\))
* [Object.ToString()](/engine/6000.7/script-reference/unityengine/object/tostring.md)
* [Object.name](/engine/6000.7/script-reference/unityengine/object/name.md)
* [Object.hideFlags](/engine/6000.7/script-reference/unityengine/object/hideflags.md)

### Operators

| Operator                                                                           | Description                                                             |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [operator ==](/engine/6000.7/script-reference/unityengine/object/op-equality.md)   | Compares two object references to see if they refer to the same object. |
| [bool](/engine/6000.7/script-reference/unityengine/object/op-implicit.md)          | Determines whether the object exists.                                   |
| [operator !=](/engine/6000.7/script-reference/unityengine/object/op-inequality.md) | Compares if two objects refer to a different object.                    |
