Documentation

Unity Engine

Unity Engine

PluginImporter

Represents a plugin importer.
Read time 6 minutesLast updated 20 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.
GetCompatibleWithEditorChecks whether the plug-in is compatible with the Unity Editor.
GetCompatibleWithPlatformChecks whether the plug-in is compatible with a platform, identified by name.
GetEditorDataGets Editor data for a specified key.
GetExcludeEditorFromAnyPlatformChecks whether the Editor is excluded when the plug-in is compatible with any platform.
GetExcludeFromAnyPlatformChecks whether a platform, identified by name, is excluded when the plug-in is compatible with any platform.
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.
GetPlatformDataGets the platform-specific data stored under a key for a platform, identified by name.
SetCompatibleWithAnyPlatformSets compatibility with Any Platform.
SetCompatibleWithEditorSets compatibility with any editor.
SetCompatibleWithPlatformSets whether the plug-in is compatible with a platform, identified by name.
SetEditorDataSets editor specific data.
SetExcludeEditorFromAnyPlatformExclude Editor from compatible platforms when Any Platform is set to true.
SetExcludeFromAnyPlatformSets whether a platform, identified by name, is excluded when the plug-in is compatible with any platform.
SetIconSets the custom icon to associate with a MonoScript imported by a managed plugin.
SetIncludeInBuildDelegateSets the delegate function to be called by ShouldIncludeInBuild.
SetPlatformDataStores platform-specific data under a key for a platform, identified by name.
ShouldIncludeInBuildIdentifies whether or not this plugin should be included in the current build target.

Static Methods

Method

Description

GetAllImportersGets all plug-in importers for all platforms.
GetImportersGets the importers of all the plug-ins that are compatible with a platform, identified by name.

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.