Table of Contents

Struct LightData

Namespace
ReFuel.Scenegraph
Assembly
ReFuel.dll
[SystemData(typeof(LightSystem))]
public struct LightData : ISystemData<LightData, LightSystem>, ISystemData<LightData, LightSystem, LightData>, ISystemData<LightData, LightSystem, PointLightConstructor>, ISystemData<LightData, LightSystem, SpotLightConstructor>, ISystemData<LightData, LightSystem, SunLightConstructor>, ISystemData<LightData, LightSystem, AreaLightConstructor>, ISystemData
Implements
Inherited Members

Constructors

LightData(in AreaLightConstructor)

public LightData(in AreaLightConstructor area)

Parameters

area AreaLightConstructor

LightData(in PointLightConstructor)

public LightData(in PointLightConstructor point)

Parameters

point PointLightConstructor

LightData(in SpotLightConstructor)

public LightData(in SpotLightConstructor spot)

Parameters

spot SpotLightConstructor

LightData(in SunLightConstructor)

public LightData(in SunLightConstructor sun)

Parameters

sun SunLightConstructor

Fields

Color

[UnionDisplay(typeof(bool), "UseTemperature")]
[UnionChoose(false, "RGB")]
[UnionChoose(true, "Temperature")]
public LightData.ColorUnion Color

Field Value

LightData.ColorUnion

Direction

[EditorDisable(0, "Type")]
public Vector3 Direction

Field Value

Vector3

Power

public float Power

Field Value

float

Specific

[UnionDisplay(typeof(LightType), "Type")]
[UnionChoose(1, "Spot")]
[UnionChoose(3, "Area")]
public LightData.SpecificUnion Specific

Field Value

LightData.SpecificUnion

Type

public LightType Type

Field Value

LightType

UseTemperature

public bool UseTemperature

Field Value

bool

Properties

Owner

The entity that owns this data.

public WeakReference<Entity> Owner { readonly get; set; }

Property Value

WeakReference<Entity>

System

A reference to the system owning this data.

public SystemBase System { readonly get; set; }

Property Value

SystemBase