Class AircraftLightsManager
Centralized manager for all aircraft lighting systems including navigation lights, landing lights, and strobes. Handles input processing and strobe timing.
Inheritance
Inherited Members
Namespace: NWH.Aerodynamics.AircraftController.Effects.Lights
Assembly: NWH.Aerodynamics.dll
Syntax
[Serializable]
public class AircraftLightsManager : AircraftMonoBehaviour
Remarks
Manages three main light categories: constant navigation lights (steady position lights), strobing navigation lights (anti-collision strobes), and landing lights (high-intensity forward illumination). Strobe timing is configurable via interval and duration parameters. All lights respond to input commands and can be toggled individually.
Fields
| Edit this page View SourceconstantNavigationLights
Steady navigation/position lights (red/green wingtips, white tail). Remain continuously lit when activated for aircraft visibility.
Declaration
[Tooltip("Constantly lit navigation lights.")]
public AircraftLight constantNavigationLights
Field Value
| Type | Description |
|---|---|
| AircraftLight |
landingLights
High-intensity forward-facing lights for takeoff, landing, and low-visibility operations. Provide illumination of the runway and approach area.
Declaration
[Tooltip("Landing beam lights.")]
public AircraftLight landingLights
Field Value
| Type | Description |
|---|---|
| AircraftLight |
strobeDuration
How long each strobe flash remains on (in seconds). Typical values are 0.05-0.2s for a quick bright flash.
Declaration
[Tooltip("Duration of each strobe flash in [s].")]
public float strobeDuration
Field Value
| Type | Description |
|---|---|
| float |
strobeInterval
Time between consecutive strobe flashes (in seconds). Typical values are 1-3s. Shorter intervals create more frequent flashes.
Declaration
[Tooltip("Time interval in [s] between two strobe flashes.")]
public float strobeInterval
Field Value
| Type | Description |
|---|---|
| float |
strobeNavigationLights
Anti-collision strobe lights that flash at regular intervals. Used for enhanced visibility to other aircraft.
Declaration
[Tooltip("Strobing navigation lights.")]
public AircraftLight strobeNavigationLights
Field Value
| Type | Description |
|---|---|
| AircraftLight |
Methods
| Edit this page View SourceDisable()
Declaration
public void Disable()
FixedUpdate()
Declaration
public void FixedUpdate()
GetByteState()
Returns light states as a byte with each bit representing one light;
Declaration
public byte GetByteState()
Returns
| Type | Description |
|---|---|
| byte |
SetByteState(byte)
Sets state of lights from a single byte where each bit represents one light. To be used with GetByteState().
Declaration
public void SetByteState(byte state)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | state |
SetDefaults()
Sets all lights to their default off state.
Declaration
public void SetDefaults()
TurnOffAllLights()
Turns off all lights and emission on all meshes.
Declaration
public void TurnOffAllLights()