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 | 获取或设置任意用户数据。 |
| hideFlags | 该对象应该隐藏、随场景一起保存还是由用户修改? |
| name | 对象的名称。 |
| AddRemap | 将子资源从导入的资源(例如 FBX 文件)映射到同类型的外部资源。 |
| GetExternalObjectMap | 获取 AssetImporter 使用的外部对象映射的副本。 |
| RemoveRemap | 从外部对象的映射中删除项。 |
| SaveAndReimport | 如果资源导入器已标记为“脏”,则保存资源导入器设置。 |
| SetAssetBundleNameAndVariant | 设置 AssetBundle 名称和变体。 |
| GetInstanceID | 返回对象的实例 ID。 |
| ToString | 返回 GameObject 的名称。 |
| GetAtPath | 在 path 处检索资源的资源导入器。 |
| Destroy | 删除 GameObject、组件或资源。 |
| DestroyImmediate | 立即销毁对象 /obj/。强烈建议您改用 Destroy。 |
| DontDestroyOnLoad | 加载新场景时,不自动销毁对象 /target/。 |
| FindObjectOfType | 返回第一个类型为 type 的已加载的激活对象。 |
| FindObjectsOfType | 返回所有类型为 type 的已加载的激活对象的列表。 |
| Instantiate | 克隆 original 对象并返回克隆对象。 |
| bool | 该对象是否存在? |
| operator != | 比较两个对象是否引用不同的对象。 |
| operator == | 比较两个对象引用,判断它们是否引用同一个对象。 |