|
virtual void | Tick (float DeltaTime) override |
|
void | SetupLight () |
| Sets the light meshes and dynamic materials for the signals. More...
|
|
void | SetLightOnOff (int32 InLightIndex, bool bInLightOn) |
| Sets the light at index to be on or off. More...
|
|
void | ToggleLight (int32 InLightIndex) |
| Toggles one of the lights on or off. More...
|
|
void | SetLightColor (int32 InLightIndex, FLinearColor InColor) |
| Sets the color of the light at InLightIndex. More...
|
|
void | StartLightBlink (int32 InLightIndex, float InSeconds) |
| Sets a light to blink at the specified frequency. More...
|
|
void | StopLightBlink (int32 InLightIndex) |
| Stops a light from blinking. More...
|
|
void | UpdateSignalStatus (ESignalStatus NewSignalStatus) |
| Function needs to be implemented in blueprints.
|
|
|
FName | ID |
|
ESignalType | Type |
|
ESignalStatus | SignalStatus |
|
UStaticMeshComponent * | VisualComponent |
| The visual component for the 3D model.
|
|
UStaticMesh * | BaseLightMesh |
| Base mesh for the lights.
|
|
UMaterialInterface * | BaseLightMaterial |
| Base material for the dynamic lights.
|
|
int32 | NumLights = 2 |
| The number of lights to generate.
|
|
float | MaxLightLevel = 10.0f |
| The max emissive light level.
|
|
float | LightBlinkPeriod = 2.0f |
| The period of blinking lights.
|
|
bool | bSnapToNearestRailway |
| If true, the signal will snap to the nearest railway.
|
|
float | OffsetFromRailway = 400.0f |
| The sideways distance to add from the railway in centimeters.
|
|
Basic signal class, contains functionality to setup and use signal lights.
Needs to be extended into a blueprint class in order to be used. Switching light statuses depends on the type of signal, and each signal uses a custom amount of lights. The model should also be applied in the blueprint.