Provides a base class for different kinds of light nodes.
    public class Light : VisualInstance

Light is the abstract base class for light nodes, so it shouldn’t be used directly (It can’t be instanced). Other types of light nodes inherit from it. Light contains the common variables and parameters used for lighting.

Inheritance Chain

Derived Classes

Properties

    public bool EditorOnly { get; set; }

    public BakeMode LightBakeMode { get; set; }

    public Color LightColor { get; set; }

    public int LightCullMask { get; set; }

    public float LightEnergy { get; set; }

    public float LightIndirectEnergy { get; set; }

    public bool LightNegative { get; set; }

    public float LightSpecular { get; set; }

    public float ShadowBias { get; set; }

    public Color ShadowColor { get; set; }

    public float ShadowContact { get; set; }

    public bool ShadowEnabled { get; set; }

    public bool ShadowReverseCullFace { get; set; }

Methods

    public BakeMode GetBakeMode()

Getter for LightBakeMode

    public Color GetColor()

Getter for LightColor

    public int GetCullMask()

Getter for LightCullMask

    public float GetParam(Param param)

    public Color GetShadowColor()

Getter for ShadowColor

    public bool GetShadowReverseCullFace()

Getter for ShadowReverseCullFace

    public bool HasShadow()

Getter for ShadowEnabled

    public bool IsEditorOnly()

Getter for EditorOnly

    public bool IsNegative()

Getter for LightNegative

    public void SetBakeMode(BakeMode bakeMode)

Setter for LightBakeMode

    public void SetColor(Color color)

Setter for LightColor

    public void SetCullMask(int cullMask)

Setter for LightCullMask

    public void SetEditorOnly(bool editorOnly)

Setter for EditorOnly

    public void SetNegative(bool enabled)

Setter for LightNegative

    public void SetParam(Param param, float value)

    public void SetShadow(bool enabled)

Setter for ShadowEnabled

    public void SetShadowColor(Color shadowColor)

Setter for ShadowColor

    public void SetShadowReverseCullFace(bool enable)

Setter for ShadowReverseCullFace

Inner Types

BakeMode

Name Value Description
Disabled 0  
Indirect 1  
All 2  

Param

Name Value Description
Energy 0  
IndirectEnergy 1  
Specular 2  
Range 3  
Attenuation 4  
SpotAngle 5  
SpotAttenuation 6  
ContactShadowSize 7  
ShadowMaxDistance 8  
ShadowSplit1Offset 9  
ShadowSplit2Offset 10  
ShadowSplit3Offset 11  
ShadowNormalBias 12  
ShadowBias 13  
ShadowBiasSplitScale 14  
Max 15  
Tags: