Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShaderImporter

Shader importer lets you modify shader import settings from Editor scripts.
Read time 4 minutesLast updated 2 days ago

Definition

public sealed class ShaderImporter : AssetImporter

Properties

Property

Description

preprocessorOverrideThis property has no effect.

Methods

Method

Description

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.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.