docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SpotLight

    glTF spot light properties

    Inheritance
    object
    SpotLight
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Gltfast.Objects
    Assembly: Unity.Cloud.Gltfast.dll
    Syntax
    [MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
    public class SpotLight

    Properties

    InnerConeAngle

    Angle, in radians, from centre of spotlight where falloff begins Must be greater than or equal to 0 and less than outerConeAngle

    Declaration
    [JsonPropertyName("innerConeAngle")]
    public float InnerConeAngle { get; set; }
    Property Value
    Type Description
    float

    OuterConeAngle

    Angle, in radians, from centre of spotlight where falloff ends. Must be greater than innerConeAngle and less than or equal to PI / 2.0.

    Declaration
    [JsonIgnore]
    public float OuterConeAngle { get; set; }
    Property Value
    Type Description
    float
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)