Class ShaderUtilities
Inheritance
ShaderUtilities
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
public static class ShaderUtilities
Fields
ID_BevelAmount
Declaration
public static int ID_BevelAmount
Field Value
ID_ClipRect
Declaration
public static int ID_ClipRect
Field Value
ID_EnvMap
Declaration
public static int ID_EnvMap
Field Value
ID_EnvMatrix
Declaration
public static int ID_EnvMatrix
Field Value
ID_EnvMatrixRotation
Declaration
public static int ID_EnvMatrixRotation
Field Value
ID_FaceColor
Declaration
public static int ID_FaceColor
Field Value
ID_FaceDilate
Declaration
public static int ID_FaceDilate
Field Value
ID_FaceTex
Declaration
public static int ID_FaceTex
Field Value
ID_GlowColor
Declaration
public static int ID_GlowColor
Field Value
ID_GlowInner
Declaration
public static int ID_GlowInner
Field Value
ID_GlowOffset
Declaration
public static int ID_GlowOffset
Field Value
ID_GlowOuter
Declaration
public static int ID_GlowOuter
Field Value
ID_GlowPower
Declaration
public static int ID_GlowPower
Field Value
ID_GradientScale
Declaration
public static int ID_GradientScale
Field Value
ID_LightAngle
Declaration
public static int ID_LightAngle
Field Value
ID_MainTex
Declaration
public static int ID_MainTex
Field Value
ID_MaskCoord
Declaration
public static int ID_MaskCoord
Field Value
ID_MaskSoftnessX
Declaration
public static int ID_MaskSoftnessX
Field Value
ID_MaskSoftnessY
Declaration
public static int ID_MaskSoftnessY
Field Value
ID_Outline2Color
Declaration
public static int ID_Outline2Color
Field Value
ID_Outline2Width
Declaration
public static int ID_Outline2Width
Field Value
ID_OutlineColor
Declaration
public static int ID_OutlineColor
Field Value
ID_OutlineSoftness
Declaration
public static int ID_OutlineSoftness
Field Value
ID_OutlineTex
Declaration
public static int ID_OutlineTex
Field Value
ID_OutlineWidth
Declaration
public static int ID_OutlineWidth
Field Value
ID_Padding
Declaration
public static int ID_Padding
Field Value
ID_PerspectiveFilter
Declaration
public static int ID_PerspectiveFilter
Field Value
ID_ScaleRatio_A
Declaration
public static int ID_ScaleRatio_A
Field Value
ID_ScaleRatio_B
Declaration
public static int ID_ScaleRatio_B
Field Value
ID_ScaleRatio_C
Declaration
public static int ID_ScaleRatio_C
Field Value
ID_ScaleX
Declaration
public static int ID_ScaleX
Field Value
ID_ScaleY
Declaration
public static int ID_ScaleY
Field Value
ID_ShaderFlags
Declaration
public static int ID_ShaderFlags
Field Value
ID_Sharpness
Declaration
public static int ID_Sharpness
Field Value
ID_Shininess
Declaration
public static int ID_Shininess
Field Value
ID_StencilComp
Declaration
public static int ID_StencilComp
Field Value
ID_StencilID
Declaration
public static int ID_StencilID
Field Value
ID_StencilOp
Declaration
public static int ID_StencilOp
Field Value
ID_StencilReadMask
Declaration
public static int ID_StencilReadMask
Field Value
ID_StencilWriteMask
Declaration
public static int ID_StencilWriteMask
Field Value
ID_TextureHeight
Declaration
public static int ID_TextureHeight
Field Value
ID_TextureWidth
Declaration
public static int ID_TextureWidth
Field Value
ID_UnderlayColor
Declaration
public static int ID_UnderlayColor
Field Value
ID_UnderlayDilate
Declaration
public static int ID_UnderlayDilate
Field Value
ID_UnderlayIsoPerimeter
Property ID for the _UnderlayIsoPerimeter shader property used by URP and HDRP shaders
Declaration
public static int ID_UnderlayIsoPerimeter
Field Value
ID_UnderlayOffset
Property ID for the _UnderlayOffset shader property used by URP and HDRP shaders
Declaration
public static int ID_UnderlayOffset
Field Value
ID_UnderlayOffsetX
Declaration
public static int ID_UnderlayOffsetX
Field Value
ID_UnderlayOffsetY
Declaration
public static int ID_UnderlayOffsetY
Field Value
ID_UnderlaySoftness
Declaration
public static int ID_UnderlaySoftness
Field Value
ID_UseClipRect
Declaration
public static int ID_UseClipRect
Field Value
ID_VertexOffsetX
Declaration
public static int ID_VertexOffsetX
Field Value
ID_VertexOffsetY
Declaration
public static int ID_VertexOffsetY
Field Value
ID_WeightBold
Declaration
public static int ID_WeightBold
Field Value
ID_WeightNormal
Declaration
public static int ID_WeightNormal
Field Value
Keyword_Bevel
Declaration
public static string Keyword_Bevel
Field Value
Keyword_Glow
Declaration
public static string Keyword_Glow
Field Value
Keyword_MASK_HARD
Declaration
public static string Keyword_MASK_HARD
Field Value
Keyword_MASK_SOFT
Declaration
public static string Keyword_MASK_SOFT
Field Value
Keyword_MASK_TEX
Declaration
public static string Keyword_MASK_TEX
Field Value
Keyword_Outline
Declaration
public static string Keyword_Outline
Field Value
Keyword_Ratios
Declaration
public static string Keyword_Ratios
Field Value
Keyword_Underlay
Declaration
public static string Keyword_Underlay
Field Value
ShaderTag_CullMode
Declaration
public static string ShaderTag_CullMode
Field Value
ShaderTag_ZTestMode
Declaration
public static string ShaderTag_ZTestMode
Field Value
isInitialized
Declaration
public static bool isInitialized
Field Value
Methods
GetFontExtent(Material)
Declaration
public static Vector4 GetFontExtent(Material material)
Parameters
Type |
Name |
Description |
Material |
material |
|
Returns
GetPadding(Material, bool, bool)
Declaration
public static float GetPadding(Material material, bool enableExtraPadding, bool isBold)
Parameters
Type |
Name |
Description |
Material |
material |
|
bool |
enableExtraPadding |
|
bool |
isBold |
|
Returns
GetPadding(Material[], bool, bool)
Declaration
public static float GetPadding(Material[] materials, bool enableExtraPadding, bool isBold)
Parameters
Type |
Name |
Description |
Material[] |
materials |
|
bool |
enableExtraPadding |
|
bool |
isBold |
|
Returns
GetShaderPropertyIDs()
Declaration
public static void GetShaderPropertyIDs()
IsMaskingEnabled(Material)
Declaration
public static bool IsMaskingEnabled(Material material)
Parameters
Type |
Name |
Description |
Material |
material |
|
Returns
UpdateShaderRatios(Material)
Declaration
public static void UpdateShaderRatios(Material mat)
Parameters
Type |
Name |
Description |
Material |
mat |
|