Class ShaderUtilities
Inheritance
ShaderUtilities
Namespace: TMPro
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_IsoPerimeter
Property ID for the _IsoPerimeter shader property used by URP and HDRP shaders
Declaration
public static int ID_IsoPerimeter
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_OutlineMode
Property ID for the ID_AdditiveOutlineMode shader property used by URP and HDRP shaders
Declaration
public static int ID_OutlineMode
Field Value
ID_OutlineOffset1
Property ID for the _OutlineOffset1 shader property used by URP and HDRP shaders
Declaration
public static int ID_OutlineOffset1
Field Value
ID_OutlineOffset2
Property ID for the _OutlineOffset2 shader property used by URP and HDRP shaders
Declaration
public static int ID_OutlineOffset2
Field Value
ID_OutlineOffset3
Property ID for the _OutlineOffset3 shader property used by URP and HDRP shaders
Declaration
public static int ID_OutlineOffset3
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_Softness
Property ID for the _Softness shader property used by URP and HDRP shaders
Declaration
public static int ID_Softness
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
isInitialized
Declaration
public static bool isInitialized
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
Methods
GetFontExtent(Material)
Declaration
public static Vector4 GetFontExtent(Material material)
Parameters
Returns
GetPadding(Material, Boolean, Boolean)
Declaration
public static float GetPadding(Material material, bool enableExtraPadding, bool isBold)
Parameters
Returns
GetPadding(Material[], Boolean, Boolean)
Declaration
public static float GetPadding(Material[] materials, bool enableExtraPadding, bool isBold)
Parameters
Returns
GetShaderPropertyIDs()
Declaration
public static void GetShaderPropertyIDs()
IsMaskingEnabled(Material)
Declaration
public static bool IsMaskingEnabled(Material material)
Parameters
Returns
UpdateShaderRatios(Material)
Declaration
public static void UpdateShaderRatios(Material mat)
Parameters