LightComponent class
A light at its entity's transform. Directional and spot lights shine along the entity's forward (+Z) axis.
Constructors
Properties
- color ↔ Color
-
Its colour (sRGB, as picked).
getter/setter pair
- componentType → Type
-
Type identifier for this component
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- innerConeAngle ↔ double
-
Spot: full brightness inside this angle (radians).
getter/setter pair
- intensity ↔ double
-
Brightness: lux-like for a directional light, candela-like otherwise.
getter/setter pair
- kind ↔ LightKind
-
Directional, point or spot.
getter/setter pair
- outerConeAngle ↔ double
-
Spot: no light outside this angle (radians).
getter/setter pair
- range ↔ double
-
Where a point or spot light stops reaching, in metres; 0 for no limit.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAttach(
EntityId entityId) → void -
Called when this component is added to an entity.
inherited
-
onDetach(
EntityId entityId) → void -
Called when this component is removed from an entity.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited