BackgroundComponent Class
Namespace: Stride.EngineAssembly: Stride.Engine.dll
Add a background to an Entity.
Derived from BackgroundComponent:
[DataContract("BackgroundComponent")]
[Display("Background", null, Expand = ExpandRule.Once)]
[DefaultEntityComponentRenderer(typeof(BackgroundRenderProcessor))]
[ComponentOrder(9600)]
public sealed class BackgroundComponent : ActivableEntityComponent, IIdentifiable
Name | Description | |
---|---|---|
Constructors | ||
BackgroundComponent() | Create an empty Background component. |
|
Properties | ||
Intensity | Gets or sets the intensity. |
|
Is2D | Indicate if the background should behave like a 2D image. |
|
RenderGroup | The render group for this component. |
|
Texture | Gets or sets the texture to use as background |
Constructors
BackgroundComponent()
Create an empty Background component.
public BackgroundComponent()
Properties
Intensity
Gets or sets the intensity.
[DataMember(20)]
[DataMemberRange(0, 100, 0.0099999997764825821, 1, 2)]
public float Intensity { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The intensity. |
Is2D
Indicate if the background should behave like a 2D image.
[DataMember(40)]
[Display("2D background", null)]
public bool Is2D { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
RenderGroup
The render group for this component.
[DataMember(30)]
[Display("Render group", null)]
public RenderGroup RenderGroup { get; set; }
Property Value
Type | Description |
---|---|
RenderGroup |
Texture
Gets or sets the texture to use as background
[DataMember(10)]
[Display("Texture", null)]
public Texture Texture { get; set; }
Property Value
Type | Description |
---|---|
Texture |