ShaderImporter
Shader importer lets you modify shader import settings from Editor scripts.
Read time 4 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
- Inherits from: AssetImporter
public sealed class ShaderImporter : AssetImporter
Properties
Property | Description |
|---|---|
| preprocessorOverride | This property has no effect. |
Methods
Method | Description |
|---|---|
| GetDefaultTexture | Gets the default texture assigned to the shader importer for the shader property with given name. |
| GetNonModifiableTexture | Gets the non-modifiable texture assigned to the shader importer for the shader property with given name. |
| GetShader | Gets the reference to the shader imported by this importer. |
| SetDefaultTextures | Sets the default textures for each texture material property. |
| SetNonModifiableTextures | Sets the non-modifiable textures for each texture material property. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |