Class MaterialExtensions
- Namespace
- S1MAPI.Extensions
- Assembly
- S1MAPI_Mono.dll
Extension methods for Material operations.
public static class MaterialExtensions
- Inheritance
-
MaterialExtensions
- Inherited Members
Methods
DisableKeyword(Material, string)
Disable a shader keyword.
public static Material DisableKeyword(this Material material, string keyword)
Parameters
materialMaterialkeywordstring
Returns
- Material
EnableKeyword(Material, string)
Enable a shader keyword.
public static Material EnableKeyword(this Material material, string keyword)
Parameters
materialMaterialkeywordstring
Returns
- Material
SetColorAlpha(Material, float)
Set color with alpha for transparent materials.
public static Material SetColorAlpha(this Material material, float alpha)
Parameters
materialMaterialalphafloat
Returns
- Material