Class 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
BlendMode
Declaration
public BlendMode BlendMode { get; set; }
Property Value
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
DeallocateOnDisable
Declaration
public bool DeallocateOnDisable { get; set; }
Property Value
DisableFitCompensation
Improve shadow fit on some sprites
Declaration
public bool DisableFitCompensation { get; set; }
Property Value
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
Inset
Declaration
public bool Inset { get; set; }
Property Value
Offset
Declaration
public Vector2 Offset { get; }
Property Value
Type |
Description |
UnityEngine.Vector2 |
|
OffsetAngle
Declaration
public float OffsetAngle { get; set; }
Property Value
OffsetDistance
Declaration
public float OffsetDistance { get; set; }
Property Value
Size
Declaration
public float Size { get; set; }
Property Value
Spread
Declaration
public float Spread { get; set; }
Property Value
UseCasterAlpha
Allow shadow to cross-fade with caster
Declaration
public bool UseCasterAlpha { get; set; }
Property Value
UseGlobalAngle
Declaration
public bool UseGlobalAngle { get; set; }
Property Value
UsingRendererMaterialProvider
Declaration
public bool UsingRendererMaterialProvider { get; }
Property Value
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
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()
Declaration
protected override void OnRectTransformDimensionsChange()
Overrides
UnityEngine.EventSystems.UIBehaviour.OnRectTransformDimensionsChange()
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