LightComponent Class
Namespace: Stride.EngineAssembly: Stride.Engine.dll
Add a light to an Entity, that will be used during rendering.
Derived from LightComponent:
[DataContract("LightComponent")]
[Display("Light", null, Expand = ExpandRule.Once)]
[DefaultEntityComponentRenderer(typeof(LightProcessor))]
[ComponentOrder(12000)]
[ComponentCategory("Lights")]
public sealed class LightComponent : ActivableEntityComponent, IIdentifiable
Name | Description | |
---|---|---|
Constructors | ||
LightComponent() | Initializes a new instance of the LightComponent class. |
|
Properties | ||
Intensity | Gets or sets the light intensity. |
|
Type | Gets or sets the type of the light. |
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
Type | Description |
---|---|
System.Single | 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
Type | Description |
---|---|
ILight | The type of the light. |