C# Class MaterialProcessor, ThreeDWorld

Inheritance: UnityEditor.AssetPostprocessor
显示文件 Open project: dicarlolab/ThreeDWorld

Public Methods

Method Description
HandleMaterial ( string materialLocation, string mtlFileContents ) : void
OnPostprocessModel ( GameObject obj ) : void
OnPreprocessModel ( ) : void
ProcessMtlFile ( string fileLocation ) : void

Private Methods

Method Description
LookUpMtlPrefix ( string mtlKey, string mtlContents ) : string
OnPostprocessAllAssets ( string importedAssets, string deletedAssets, string movedAssets, string movedFromAssetPaths ) : void
SetShaderTagToTransparent ( string fullMaterialPath ) : void
TryRegressProperties ( Material mat, string mtlContents ) : void
TrySetColor ( string mtlKey, string mtlAlphaKey, string shaderKey, Material mat, string mtlContents ) : void
TrySetTexMap ( string mtlKey, string shaderKey, Material mat, string texDirectory, string mtlContents ) : void

Method Details

HandleMaterial() public method

public HandleMaterial ( string materialLocation, string mtlFileContents ) : void
materialLocation string
mtlFileContents string
return void

OnPostprocessModel() public method

public OnPostprocessModel ( GameObject obj ) : void
obj GameObject
return void

OnPreprocessModel() public method

public OnPreprocessModel ( ) : void
return void

ProcessMtlFile() public method

public ProcessMtlFile ( string fileLocation ) : void
fileLocation string
return void