{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class LightPunctual | Unity glTFast | 6.0.1
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LightPunctual

    Light

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

    Fields

    Name Description
    color

    RGB values for light's color in linear space

    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)

    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.

    spot

    Spot light properties (only set on spot lights).

    type

    Light type

    Properties

    Name Description
    LightColor

    Light's color in linear space

    Methods

    Name Description
    GetLightType()

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

    SetLightType(Type)

    Sets the type of the light

    Extension Methods

    LightPunctualExtension.ToUnityLight(LightPunctual, Light, float)
    In This Article
    Back to top
    Copyright © 2023 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)