LightUnit

How the Light's intensity value is interpreted, mirroring the three intensity setters on the core LightManager.Builder.

  • LUMINOUS_POWER — illuminance in lux for directional lights, luminous power in lumen for point/spot lights (the default and most common).

  • CANDELA — luminous intensity in candela; for directional lights this equals lux.

  • WATTS — electrical watts; combined with efficiency it becomes 683 · efficiency · watts lumen. Typical efficiencies: incandescent 0.022, halogen 0.07, LED 0.087, fluorescent 0.107.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): LightUnit

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.