docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetCookie

    SetCookie(Texture, Vector2)

    Set light cookie. Note that the texture must have a power of two size.

    Declaration
    public void SetCookie(Texture cookie, Vector2 directionalLightCookieSize)
    Parameters
    Type Name Description
    Texture cookie

    Cookie texture, must be 2D for Directional, Spot and Area light and Cubemap for Point lights

    Vector2 directionalLightCookieSize

    area light

    SetCookie(Texture)

    Set light cookie.

    Declaration
    public void SetCookie(Texture cookie)
    Parameters
    Type Name Description
    Texture cookie

    Cookie texture, must be 2D for Directional, Spot and Area light and Cubemap for Point lights

    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)