Méthode | Description | |
---|---|---|
AssignNewShaderToMaterial ( |
This method is called when a new shader has been selected for a Material.
|
|
OnGUI ( |
To define a custom shader GUI use the methods of materialEditor to render controls for the properties array.
|
|
OnMaterialInteractivePreviewGUI ( |
||
OnMaterialPreviewGUI ( |
Override for extending the rendering of the Preview area or completly replace the preview (by not calling base.OnMaterialPreviewGUI).
|
|
OnMaterialPreviewSettingsGUI ( |
Override for extending the functionality of the toolbar of the preview area or completly replace the toolbar by not calling base.OnMaterialPreviewSettingsGUI.
|
Méthode | Description | |
---|---|---|
FindProperty ( string propertyName, |
Find shader properties.
|
|
FindProperty ( string propertyName, |
Find shader properties.
|
|
ShaderGUI ( ) : System |
public AssignNewShaderToMaterial ( |
||
material | The material the newShader should be assigned to. | |
oldShader | Previous shader. | |
newShader | New shader to assign to the material. | |
Résultat | void |
protected static FindProperty ( string propertyName, |
||
propertyName | string | Name of the material property. |
properties | The array of available properties. | |
Résultat |
protected static FindProperty ( string propertyName, |
||
propertyName | string | Name of the material property. |
properties | The array of available properties. | |
propertyIsMandatory | bool | If true then this method will throw an exception if a property with propertyName was not found. |
Résultat |
public OnGUI ( |
||
materialEditor | The MaterialEditor that are calling this OnGUI (the 'owner'). | |
properties | Material properties of the current selected shader. | |
Résultat | void |
public OnMaterialInteractivePreviewGUI ( |
||
materialEditor | ||
r | ||
background | ||
Résultat | void |
public OnMaterialPreviewGUI ( |
||
materialEditor | The MaterialEditor that are calling this method (the 'owner'). | |
r | Preview rect. | |
background | Style for the background. | |
Résultat | void |
public OnMaterialPreviewSettingsGUI ( |
||
materialEditor | The MaterialEditor that are calling this method (the 'owner'). | |
Résultat | void |