PluginImporter

class in UnityEditor

/

Inherits from:AssetImporter

Switch to Manual

Description

Represents plugin importer.

Variables

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?

Constructors

PluginImporterКонструктор.

Public Functions

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.
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.
SetIncludeInBuildDelegateSetting 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 Functions

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

Delegates

IncludeInBuildDelegateDelegate to be used with SetIncludeInBuildDelegate.

Inherited members

Variables

assetBundleNameGet or set the AssetBundle name.
assetBundleVariantПолучите или установите любые пользовательские данные.
assetPathИмя пути ассета для этого импортера. (Read Only)
importSettingsMissingThe value is true when no meta file is provided with the imported asset.
userDataПолучите или установите любые пользовательские данные.

Public Functions

AddRemapMap a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type.
GetExternalObjectMapGets a copy of the external object map used by the AssetImporter.
RemoveRemapRemoves an item from the map of external objects.
SaveAndReimportSave asset importer settings if asset importer is dirty.
SetAssetBundleNameAndVariantПолучите или установите любые пользовательские данные.
SupportsRemappedAssetTypeChecks if the AssetImporter supports remapping the given asset type.

Static Functions

GetAtPathВосстанавливает импортер ассетов для ассета в path.