메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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. | |
리턴 | void |
protected static FindProperty ( string propertyName, |
||
propertyName | string | Name of the material property. |
properties | The array of available properties. | |
리턴 |
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. |
리턴 |
public OnGUI ( |
||
materialEditor | The MaterialEditor that are calling this OnGUI (the 'owner'). | |
properties | Material properties of the current selected shader. | |
리턴 | void |
public OnMaterialInteractivePreviewGUI ( |
||
materialEditor | ||
r | ||
background | ||
리턴 | void |
public OnMaterialPreviewGUI ( |
||
materialEditor | The MaterialEditor that are calling this method (the 'owner'). | |
r | Preview rect. | |
background | Style for the background. | |
리턴 | void |
public OnMaterialPreviewSettingsGUI ( |
||
materialEditor | The MaterialEditor that are calling this method (the 'owner'). | |
리턴 | void |