Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    LightComponent Class

    Namespace: Stride.Engine
    Assembly: Stride.Engine.dll

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

    System.Object → EntityComponent → ActivableEntityComponent → LightComponent
    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.

    | Improve this Doc View Source

    Constructors


    LightComponent()

    Initializes a new instance of the LightComponent class.

    public LightComponent()
    | Improve this Doc View Source

    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.


    Inherited Members

    ActivableEntityComponent.Enabled
    EntityComponent.Entity
    EntityComponent.Id
    EntityComponent.EnsureEntity

    Extension Methods

    LightComponentExtensions.GetColor(LightComponent)
    LightComponentExtensions.SetColor(LightComponent, Color3)
    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation