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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961