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: GLTFast.Schema
    Assembly: glTFast.dll
    Syntax
    [Serializable]
    public class LightPunctual : NamedObject

    Fields

    color

    RGB values for light's color in linear space

    Declaration
    [Obsolete("Use LightColor for access.")]
    public float[] color
    Field Value
    Type Description
    float[]

    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

    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

    type

    Light type

    Declaration
    [Obsolete("Use GetLightType and SetLightType for access.")]
    public string type
    Field Value
    Type Description
    string

    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 lightType)
    Parameters
    Type Name Description
    LightPunctual.Type lightType

    Light type

    Extension Methods

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