Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ULightComponent
Description
Test whether this light affects the given primitive. This checks both the primitive and light settings for light relevance and also calls AffectsBounds.
| Name | AffectsPrimitive |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/LightComponent.h |
| Include Path | #include "Components/LightComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/LightComponent.cpp |
bool AffectsPrimitive
(
const UPrimitiveComponent * Primitive
) const
True if the light affects the primitive.
Parameters
| Name | Remarks |
|---|---|
| PrimitiveSceneInfo | The primitive to test. |