ShaderImporter

class in UnityEditor

/

Inherits from:AssetImporter

Switch to Manual

Description

Shader importer lets you modify shader import settings from Editor scripts.

Variables

preprocessorOverrideThe preprocessor that Unity uses to compile this shader.

Public Functions

GetDefaultTextureGets the default texture assigned to the shader importer for the shader property with given name.
GetNonModifiableTextureGets the non-modifiable texture assigned to the shader importer for the shader property with given name.
GetShaderGets the reference to the shader imported by this importer.
SetDefaultTexturesSets the default textures for each texture material property.
SetNonModifiableTexturesSets the non-modifiable textures for each texture material property.

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.