docs.unity.cn
    Show / Hide Table of Contents

    Enum SpotLightShape

    This enum has been deprecated, and the spot light shapes now exist as separate members in the UnityEngine.LightType enum. The Cone, Pyramid, and Box types are represented by LightType.Spot, LightType.Pyramid, and LightType.Box respectively.

    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    [Obsolete("This enum has been deprecated. Use the UnityEngine.LightType enum instead.", false)]
    public enum SpotLightShape

    Fields

    Name Description Value
    Cone

    Cone shape. The default shape of the spot light.


    0
    Pyramid

    Pyramid shape.


    1
    Box

    Box shape. Similar to a directional light but with bounds.


    2
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023