• Home
  • Store
    Show / Hide Table of Contents

    Class TrueShadow

    Namespace: LeTai.TrueShadow
    Assembly: LeTai.TrueShadow.dll

    Properties

    Algorithm

    Declaration
    public BlurAlgorithmSelection Algorithm { get; set; }
    Property Value
    Type Description
    LeTai.Effects.BlurAlgorithmSelection

    AutoDetectTMPTextChanges

    Declaration
    public bool AutoDetectTMPTextChanges { get; set; }
    Property Value
    Type Description
    bool

    BlendMode

    Declaration
    public BlendMode BlendMode { get; set; }
    Property Value
    Type Description
    BlendMode

    ClearColor

    The area where the alpha channel = 0 can be either 0, or the color of the edge of the texture, depend on how the texture was authored. Normally this is not visible, but when blurred, the alpha in these area will become greater than 0 Depend on the blend mode, different color for this clear area may be desired.

    You can provide custom clear color by implementing ITrueShadowCasterClearColorProvider, and set this to Plugin

    Declaration
    public Color ClearColor { get; }
    Property Value
    Type Description
    UnityEngine.Color
    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    Color

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    UnityEngine.Color

    CustomHash

    When using a Material that can modify the shadow shape, use this to prevent caching caster that differ only in material property. More info

    Declaration
    public int CustomHash { get; set; }
    Property Value
    Type Description
    int

    DeallocateOnDisable

    Declaration
    public bool DeallocateOnDisable { get; set; }
    Property Value
    Type Description
    bool

    DisableFitCompensation

    Improve shadow fit on some sprites

    Declaration
    public bool DisableFitCompensation { get; set; }
    Property Value
    Type Description
    bool

    IgnoreCasterColor

    Ignore the shadow caster's color, so you can choose specific color for your shadow. When false, Color is multiplied with caster's color.

    Declaration
    public bool IgnoreCasterColor { get; set; }
    Property Value
    Type Description
    bool

    Inset

    Declaration
    public bool Inset { get; set; }
    Property Value
    Type Description
    bool

    Offset

    Declaration
    public Vector2 Offset { get; }
    Property Value
    Type Description
    UnityEngine.Vector2

    OffsetAngle

    Declaration
    public float OffsetAngle { get; set; }
    Property Value
    Type Description
    float

    OffsetDistance

    Declaration
    public float OffsetDistance { get; set; }
    Property Value
    Type Description
    float

    Size

    Declaration
    public float Size { get; set; }
    Property Value
    Type Description
    float

    Spread

    Declaration
    public float Spread { get; set; }
    Property Value
    Type Description
    float

    UseCasterAlpha

    Allow shadow to cross-fade with caster

    Declaration
    public bool UseCasterAlpha { get; set; }
    Property Value
    Type Description
    bool

    UseGlobalAngle

    Declaration
    public bool UseGlobalAngle { get; set; }
    Property Value
    Type Description
    bool

    UsingRendererMaterialProvider

    Declaration
    public bool UsingRendererMaterialProvider { get; }
    Property Value
    Type Description
    bool

    Methods

    ApplySerializedData()

    Declaration
    public void ApplySerializedData()

    Awake()

    Declaration
    protected override void Awake()
    Overrides
    UnityEngine.EventSystems.UIBehaviour.Awake()

    CopyTo(TrueShadow)

    Declaration
    public void CopyTo(TrueShadow other)
    Parameters
    Type Name Description
    TrueShadow other

    CopyTo(GameObject)

    Declaration
    public void CopyTo(GameObject other)
    Parameters
    Type Name Description
    UnityEngine.GameObject other

    GetShadowCastingMaterial()

    Declaration
    public virtual Material GetShadowCastingMaterial()
    Returns
    Type Description
    UnityEngine.Material

    GetShadowCastingMaterialForSubMesh(int)

    Declaration
    public virtual Material GetShadowCastingMaterialForSubMesh(int subMeshIndex)
    Parameters
    Type Name Description
    int subMeshIndex
    Returns
    Type Description
    UnityEngine.Material

    GetShadowRenderingMaterial()

    Declaration
    public virtual Material GetShadowRenderingMaterial()
    Returns
    Type Description
    UnityEngine.Material

    GraphicUpdateComplete()

    Declaration
    public void GraphicUpdateComplete()

    LayoutComplete()

    Declaration
    public void LayoutComplete()

    ModifyMesh(Mesh)

    Declaration
    public void ModifyMesh(Mesh mesh)
    Parameters
    Type Name Description
    UnityEngine.Mesh mesh

    ModifyMesh(VertexHelper)

    Declaration
    public void ModifyMesh(VertexHelper verts)
    Parameters
    Type Name Description
    UnityEngine.UI.VertexHelper verts

    ModifyShadowCastingMaterialProperties(MaterialPropertyBlock)

    Declaration
    public virtual void ModifyShadowCastingMaterialProperties(MaterialPropertyBlock propertyBlock)
    Parameters
    Type Name Description
    UnityEngine.MaterialPropertyBlock propertyBlock

    ModifyShadowCastingMesh(Mesh)

    Declaration
    public virtual void ModifyShadowCastingMesh(Mesh mesh)
    Parameters
    Type Name Description
    UnityEngine.Mesh mesh

    ModifyShadowRendererMaterial(Material)

    Declaration
    public virtual void ModifyShadowRendererMaterial(Material baseMaterial)
    Parameters
    Type Name Description
    UnityEngine.Material baseMaterial

    ModifyShadowRendererMesh(VertexHelper)

    Declaration
    public virtual void ModifyShadowRendererMesh(VertexHelper vertexHelper)
    Parameters
    Type Name Description
    UnityEngine.UI.VertexHelper vertexHelper

    OnDestroy()

    Declaration
    protected override void OnDestroy()
    Overrides
    UnityEngine.EventSystems.UIBehaviour.OnDestroy()

    OnDidApplyAnimationProperties()

    Declaration
    protected override void OnDidApplyAnimationProperties()
    Overrides
    UnityEngine.EventSystems.UIBehaviour.OnDidApplyAnimationProperties()

    OnDisable()

    Declaration
    protected override void OnDisable()
    Overrides
    UnityEngine.EventSystems.UIBehaviour.OnDisable()

    OnEnable()

    Declaration
    protected override void OnEnable()
    Overrides
    UnityEngine.EventSystems.UIBehaviour.OnEnable()

    OnRectTransformDimensionsChange()

    Declaration
    protected override void OnRectTransformDimensionsChange()
    Overrides
    UnityEngine.EventSystems.UIBehaviour.OnRectTransformDimensionsChange()

    OnTransformParentChanged()

    Declaration
    protected override void OnTransformParentChanged()
    Overrides
    UnityEngine.EventSystems.UIBehaviour.OnTransformParentChanged()

    Rebuild(CanvasUpdate)

    Declaration
    public void Rebuild(CanvasUpdate executing)
    Parameters
    Type Name Description
    UnityEngine.UI.CanvasUpdate executing

    RefreshPlugins()

    Declaration
    public void RefreshPlugins()

    SetHierachyDirty()

    Declaration
    public void SetHierachyDirty()

    SetLayoutDirty()

    Declaration
    public void SetLayoutDirty()

    SetTextureDirty()

    Declaration
    public void SetTextureDirty()

    Implements

    UnityEngine.UI.IMeshModifier
    UnityEngine.UI.ICanvasElement

    Extension Methods

    ExtensionMethods.NextFrames(MonoBehaviour, Action, int)
    In This Article
    Like True Shadow? Your review is greatly appreciated! ⭐⭐⭐⭐⭐ Back to top