Struct · Ara
Light
A light at the entity's world position. Edits apply live in play.
public struct Light : IComponent<Light>Properties
TypeIndex
public static uint TypeIndex { get; }Stable engine component index.
Fields
Kind
public LightKind Kind;Point, spot or directional.
Default: "point".
Color
public Color Color;Linear RGB tint (alpha is ignored).
Colour picker supports temperature in Kelvin. Default: [1,1,1,1].
Intensity
public float Intensity;Luminous flux in lumens (point/spot) or illuminance in lux (directional).
Range: [0, ∞]. Default: 800.
Range
public float Range;Influence radius of point and spot lights.
Unit: m. Range: [0.01, ∞]. Default: 10.
InnerAngle
public float InnerAngle;Spot inner cone half-angle.
Unit: deg. Range: [0, 89]. Default: 20.
OuterAngle
public float OuterAngle;Spot outer cone half-angle.
Unit: deg. Range: [0.1, 89]. Default: 30.
Methods
Access
public static ref Light Access(Entity entity, bool write);No description yet.
Insert
public static void Insert(in Commands commands, Entity entity, in Light value);No description yet.
Contains
public static bool Contains(Entity entity);No description yet.