C# Class MaterialProcessor, ThreeDWorld

Inheritance: UnityEditor.AssetPostprocessor
Afficher le fichier Open project: dicarlolab/ThreeDWorld

Méthodes publiques

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

Private Methods

Méthode 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 méthode

public HandleMaterial ( string materialLocation, string mtlFileContents ) : void
materialLocation string
mtlFileContents string
Résultat void

OnPostprocessModel() public méthode

public OnPostprocessModel ( GameObject obj ) : void
obj GameObject
Résultat void

OnPreprocessModel() public méthode

public OnPreprocessModel ( ) : void
Résultat void

ProcessMtlFile() public méthode

public ProcessMtlFile ( string fileLocation ) : void
fileLocation string
Résultat void