Class ShadowCaster2D
Class ShadowCaster2D
contains properties used for shadow casting
Implements
Inherited Members
Namespace: UnityEngine .Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.2D.Runtime.dll
Syntax
[CoreRPHelpURL("2DShadows", "com.unity.render-pipelines.universal")]
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("Rendering/2D/Shadow Caster 2D")]
[MovedFrom(false, "UnityEngine.Experimental.Rendering.Universal", "com.unity.render-pipelines.universal", null)]
public class ShadowCaster2D : ShadowCasterGroup2D, ISerializationCallbackReceiver
Properties
Name | Description |
---|---|
alpha |
The sets the renderer's shadow cutoff |
bounding |
The bounding sphere for the shadow caster |
casting |
Sets the type of shadow cast. |
casts |
Specifies if shadows will be cast. |
mesh | The mesh to draw with. |
self |
If true, the shadow casting shape is included as part of the shadow. If false, the shadow casting shape is excluded from the shadow. |
shape |
The path for the shape. |
trim |
The amount the shadow's edge is trimed |
Methods
Name | Description |
---|---|
On |
|
On |
|
On |
This function is called when the behaviour becomes disabled. |
On |
This function is called when the object becomes enabled and active. |
Update() | Update is called every frame, if the MonoBehaviour is enabled. |