Class ShadowCaster2D | Universal RP | 8.2.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class ShadowCaster2D

    Class ShadowCaster2D contains properties used for shadow casting

    Inheritance
    Object
    ShadowCasterGroup2D
    ShadowCaster2D
    Inherited Members
    ShadowCasterGroup2D.GetShadowCasters()
    ShadowCasterGroup2D.GetShadowGroup()
    ShadowCasterGroup2D.RegisterShadowCaster2D(ShadowCaster2D)
    ShadowCasterGroup2D.UnregisterShadowCaster2D(ShadowCaster2D)
    Namespace: UnityEngine.Experimental.Rendering.Universal
    Syntax
    public class ShadowCaster2D : ShadowCasterGroup2D

    Properties

    castsShadows

    Specifies if shadows will be cast.

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

    selfShadows

    If true, the shadow casting shape is included as part of the shadow. If false, the shadow casting shape is excluded from the shadow.

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

    useRendererSilhouette

    If selfShadows is true, useRendererSilhoutte specifies that the renderer's sihouette should be considered part of the shadow. If selfShadows is false, useRendererSilhoutte specifies that the renderer's sihouette should be excluded from the shadow

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

    Methods

    OnDisable()

    Declaration
    protected void OnDisable()

    OnEnable()

    Declaration
    protected void OnEnable()

    Update()

    Declaration
    public void Update()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023