C# Class UnityEditor.StandardShaderGUI

Inheritance: ShaderGUI
Mostra file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
AssignNewShaderToMaterial ( Material material, Shader oldShader, Shader newShader ) : void
FindProperties ( MaterialProperty props ) : void
OnGUI ( MaterialEditor materialEditor, MaterialProperty props ) : void
SetupMaterialWithBlendMode ( Material material, BlendMode blendMode ) : void
ShaderPropertiesGUI ( Material material ) : void

Private Methods

Method Description
BlendModePopup ( ) : void
DetermineWorkflow ( MaterialProperty props ) : void
DoAlbedoArea ( Material material ) : void
DoEmissionArea ( Material material ) : void
DoSpecularMetallicArea ( ) : void
GetSmoothnessMapChannel ( Material material ) : SmoothnessMapChannel
HasValidEmissiveKeyword ( Material material ) : bool
MaterialChanged ( Material material, WorkflowMode workflowMode ) : void
SetKeyword ( Material m, string keyword, bool state ) : void
SetMaterialKeywords ( Material material, WorkflowMode workflowMode ) : void
ShouldEmissionBeEnabled ( Material mat, Color color ) : bool

Method Details

AssignNewShaderToMaterial() public method

public AssignNewShaderToMaterial ( Material material, Shader oldShader, Shader newShader ) : void
material UnityEngine.Material
oldShader UnityEngine.Shader
newShader UnityEngine.Shader
return void

FindProperties() public method

public FindProperties ( MaterialProperty props ) : void
props MaterialProperty
return void

OnGUI() public method

public OnGUI ( MaterialEditor materialEditor, MaterialProperty props ) : void
materialEditor MaterialEditor
props MaterialProperty
return void

SetupMaterialWithBlendMode() public static method

public static SetupMaterialWithBlendMode ( Material material, BlendMode blendMode ) : void
material UnityEngine.Material
blendMode BlendMode
return void

ShaderPropertiesGUI() public method

public ShaderPropertiesGUI ( Material material ) : void
material UnityEngine.Material
return void