The SubstanceImporter class lets you access the imported ProceduralMaterial instances.
CloneMaterial | Clone an existing ProceduralMaterial instance. |
DestroyMaterial | Destroy an existing ProceduralMaterial instance. |
ExportBitmaps | Export the bitmaps generated by a ProceduralMaterial as TGA files. |
ExportPreset | Export a XML preset string with the value of all parameters of a given ProceduralMaterial to the specified folder. |
GetAnimationUpdateRate | Get the ProceduralMaterial animation update rate in millisecond. |
GetGenerateAllOutputs | Check if the ProceduralMaterial needs to force generation of all its outputs. |
GetGenerateMipMaps | Return true if the mipmaps are generated for this ProceduralMaterial. |
GetMaterialCount | Get the number of ProceduralMaterial instances. |
GetMaterialOffset | Get the material offset, which is used for all the textures that are part of this ProceduralMaterial. |
GetMaterials | Get an array with the ProceduralMaterial instances. |
GetMaterialScale | Get the material scale, which is used for all the textures that are part of this ProceduralMaterial. |
GetPlatformTextureSettings | Get the import settings for a given ProceduralMaterial for a given platform (width and height, RAW/Compressed format, loading behavior). |
GetPrototypeNames | Get a list of the names of the ProceduralMaterial prototypes in the package. |
GetTextureAlphaSource | Get the alpha source of the given texture in the ProceduralMaterial. |
InstantiateMaterial | Instantiate a new ProceduralMaterial instance from a prototype. |
OnShaderModified | After modifying the shader of a ProceduralMaterial, call this function to apply the changes to the importer. |
RenameMaterial | Rename an existing ProceduralMaterial instance. |
ResetMaterial | Reset the ProceduralMaterial to its default values. |
SetAnimationUpdateRate | Set the ProceduralMaterial animation update rate in millisecond. |
SetGenerateAllOutputs | Specify if the ProceduralMaterial needs to force generation of all its outputs. |
SetGenerateMipMaps | Force the generation of mipmaps for this ProceduralMaterial. |
SetMaterialOffset | Set the material offset, which is used for all the textures that are part of this ProceduralMaterial. |
SetMaterialScale | Set the material scale, which is used for all the textures that are part of this ProceduralMaterial. |
SetPlatformTextureSettings | Set the import settings for the input ProceduralMaterial for the input platform. |
SetTextureAlphaSource | Set the alpha source of the given texture in the ProceduralMaterial. |
assetBundleName | 获取或设置 AssetBundle 名称。 |
assetBundleVariant | 获取或设置 AssetBundle 变体。 |
assetPath | 此导入器的资源的路径名称。(只读) |
userData | 获取或设置任意用户数据。 |
AddRemap | 将子资源从导入的资源(例如 FBX 文件)映射到同类型的外部资源。 |
GetExternalObjectMap | 获取 AssetImporter 使用的外部对象映射的副本。 |
RemoveRemap | 从外部对象的映射中删除项。 |
SaveAndReimport | 如果资源导入器已标记为“脏”,则保存资源导入器设置。 |
SetAssetBundleNameAndVariant | 设置 AssetBundle 名称和变体。 |
GetAtPath | 在 path 处检索资源的资源导入器。 |