docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LightPunctual

    Light

    Inheritance
    object
    NamedObject
    LightPunctual
    Inherited Members
    NamedObject.Name
    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 LightPunctual : NamedObject

    Properties

    Color

    Light's color in linear space

    Declaration
    [JsonIgnore]
    public Color Color { get; set; }
    Property Value
    Type Description
    Color

    Intensity

    Brightness of light in. The units that this is defined in depend on the type of light. point and spot lights use luminous intensity in candela (lm/sr) while directional lights use illuminance in lux (lm/m2)

    Declaration
    [JsonIgnore]
    public float Intensity { get; set; }
    Property Value
    Type Description
    float

    Range

    Hint defining a distance cutoff at which the light's intensity may be considered to have reached zero. Supported only for point and spot lights. Must be > 0. When undefined, range is assumed to be infinite.

    Declaration
    [JsonIgnore]
    public float Range { get; set; }
    Property Value
    Type Description
    float

    Spot

    Spot light properties (only set on spot lights).

    Declaration
    [JsonPropertyName("spot")]
    public SpotLight Spot { get; set; }
    Property Value
    Type Description
    SpotLight

    Type

    Light type

    Declaration
    [JsonPropertyName("type")]
    [JsonConverter(typeof(LightTypeValueConverter))]
    public EnumOrRawValue<LightType> Type { get; set; }
    Property Value
    Type Description
    EnumOrRawValue<LightType>

    Extension Methods

    LightPunctualExtension.ToUnityLight(LightPunctual, Light, 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)