Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PluginImporter

Represents a plugin importer.
Read time 6 minutesLast updated 3 days ago

Definition

public sealed class PluginImporter : AssetImporter

Constructors

Constructor

Description

PluginImporter()Constructor.

Properties

Property

Description

DefineConstraintsAllows you to specify a list of #define directives which controls whether your plug-in should be included.
isNativePluginIs 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.
isPreloadedIs a native plugin loaded during startup or on demand?

Methods

Method

Description

ClearSettingsClear all plugin settings and set the compatability with Any Platform to true.
GetCompatibleWithAnyPlatformChecks whether a plugin is flagged as being compatible with Any Platform.
GetCompatibleWithEditorIs plugin compatible with editor.
GetCompatibleWithPlatformIs plugin compatible with specified platform.
GetEditorDataReturns editor specific data for specified key.
GetExcludeEditorFromAnyPlatformIs Editor excluded when Any Platform is set to true.
GetExcludeFromAnyPlatformIs platform excluded when Any Platform set to true.
GetIconGets the custom icon to associate with a MonoScript at import time.
GetIsOverridableIdentifies whether or not this plugin will be overridden if a plugin of the same name is placed in your project folder.
GetPlatformDataGet platform specific data.
SetCompatibleWithAnyPlatformSets compatibility with Any Platform.
SetCompatibleWithEditorSets compatibility with any editor.
SetCompatibleWithPlatformSets compatibility with the specified platform.
SetEditorDataSets editor specific data.
SetExcludeEditorFromAnyPlatformExclude Editor from compatible platforms when Any Platform is set to true.
SetExcludeFromAnyPlatformExclude platform from compatible platforms when Any Platform is set to true.
SetIconSets the custom icon to associate with a MonoScript imported by a managed plugin.
SetIncludeInBuildDelegateSets the delegate function to be called by ShouldIncludeInBuild.
SetPlatformDataSets platform specific data.
ShouldIncludeInBuildIdentifies whether or not this plugin should be included in the current build target.

Static Methods

Method

Description

GetAllImportersReturns all plugin importers for all platforms.
GetImportersReturns all plugin importers for specfied platform.

Delegates

Delegate

Description

PluginImporter.IncludeInBuildDelegateDelegate to be used with SetIncludeInBuildDelegate.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.