Table of Contents

Class LightComponent

Namespace
Stride.Engine
Assembly
Stride.Engine.dll

Add a light to an Entity, that will be used during rendering.

[DataContract("LightComponent")]
[Display("Light", null, Expand = ExpandRule.Once)]
[DefaultEntityComponentRenderer(typeof(LightProcessor))]
[ComponentOrder(12000)]
[ComponentCategory("Lights")]
public sealed class LightComponent : ActivableEntityComponent, IIdentifiable
Inheritance
LightComponent
Implements
Inherited Members
Extension Methods

Constructors

LightComponent()

Initializes a new instance of the LightComponent class.

public LightComponent()

Properties

Intensity

Gets or sets the light intensity.

[DataMember(30)]
public float Intensity { get; set; }

Property Value

float

The light intensity.

Type

Gets or sets the type of the light.

[DataMember(10)]
[Display("Light", null, Expand = ExpandRule.Always)]
public ILight Type { get; set; }

Property Value

ILight

The type of the light.