Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ULightComponentBase
Description
Return True if a light's parameters as well as its position is static during gameplay, and can thus use static lighting. A light with HasStaticLighting() == true will always have HasStaticShadowing() == true as well.
| Name | HasStaticLighting |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/LightComponentBase.h |
| Include Path | #include "Components/LightComponentBase.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/LightComponent.cpp |
bool HasStaticLighting() const