TriLib Exporter
Search Results for

    Show / Hide Table of Contents

    Class Light

    Represents a Unity Light object with properties tailored for export.

    Inheritance
    object
    ObjectBase
    Light
    Inherited Members
    ObjectBase.Name
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TriLibExporter.Objects
    Assembly: Assembly-CSharp.dll
    Syntax
    public class Light : ObjectBase

    Constructors

    Light(AssetWriterContext, Light)

    Initializes a new instance of the Light class.

    Declaration
    public Light(AssetWriterContext assetWriterContext, Light light)
    Parameters
    Type Name Description
    AssetWriterContext assetWriterContext

    The asset writer context associated with this light.

    Light light

    The Unity Light to represent.

    Fields

    CastShadows

    The type of shadows cast by the light.

    Declaration
    public LightShadows CastShadows
    Field Value
    Type Description
    LightShadows

    Color

    The color of the light.

    Declaration
    public Color Color
    Field Value
    Type Description
    Color

    InnerAngle

    The inner angle of the spot light's cone, in degrees.

    Declaration
    public float InnerAngle
    Field Value
    Type Description
    float

    Intensity

    The intensity of the light.

    Declaration
    public float Intensity
    Field Value
    Type Description
    float

    Range

    The range of the light.

    Declaration
    public float Range
    Field Value
    Type Description
    float

    Type

    The type of the light (e.g., Point, Directional, Spot).

    Declaration
    public LightType Type
    Field Value
    Type Description
    LightType
    In this article
    Back to top Generated by DocFX