docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsShapeSource

    IsShapeSource(in Component)

    Called for each component on a ShadowCaster2D's GameObject. Returns true if the provided component is the data source of the ShadowShapeProvider.

    Declaration
    public abstract bool IsShapeSource(in Component sourceComponent)
    Parameters
    Type Name Description
    Component sourceComponent

    The component to test as a source

    Returns
    Type Description
    bool

    Returns true if sourceComponent is the data source of the ShadowShapeProvider.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)