Class MaterialProperties
A class to store material properties
Namespace: Unity.MaterialSwitch
Syntax
[Serializable]
public class MaterialPropertiesMethods
GetColorProperties()
Enumerate all color properties
Declaration
public IEnumerable<ColorProperty> GetColorProperties()Returns
| Type | Description | 
|---|---|
| IEnumerable<ColorProperty> | A color property | 
GetFloatProperties()
Enumerate all float properties
Declaration
public IEnumerable<FloatProperty> GetFloatProperties()Returns
| Type | Description | 
|---|---|
| IEnumerable<FloatProperty> | A float property | 
GetMaterial()
Get the material associated with the properties.
Declaration
public Material GetMaterial()Returns
| Type | Description | 
|---|---|
| Material | The associated material | 
GetTextureProperties()
Enumerate all texture properties
Declaration
public IEnumerable<TextureProperty> GetTextureProperties()Returns
| Type | Description | 
|---|---|
| IEnumerable<TextureProperty> | A texture property |