docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LightPunctual

    glTF light

    Inheritance
    object
    LightPunctual
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: GLTFast.Schema
    Assembly: glTFast.dll
    Syntax
    [Serializable]
    public class LightPunctual

    Fields

    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
    public float intensity
    Field Value
    Type Description
    float

    name

    Name of the light

    Declaration
    public string name
    Field Value
    Type Description
    string

    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
    public float range
    Field Value
    Type Description
    float

    spot

    Spot light properties (only set on spot lights).

    Declaration
    public SpotLight spot
    Field Value
    Type Description
    SpotLight

    Properties

    LightColor

    Light's color in linear space

    Declaration
    public Color LightColor { get; set; }
    Property Value
    Type Description
    Color

    Methods

    GetLightType()

    Returns the type of the light It converts the type string and caches it.

    Declaration
    public LightPunctual.Type GetLightType()
    Returns
    Type Description
    LightPunctual.Type

    Light type, if it was retrieved correctly. Unknown otherwise

    SetLightType(Type)

    Sets the type of the light

    Declaration
    public void SetLightType(LightPunctual.Type type)
    Parameters
    Type Name Description
    LightPunctual.Type type

    Light type

    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)