FSceneInterface::GetRelevantLights

Retrieves the lights interacting with the passed in primitive and adds them to the out array.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/SceneInterface.h

Include

#include "SceneInterface.h"

Syntax

void GetRelevantLights
(
    UPrimitiveComponent * Primitive,
    TArray< const ULightComponent * > * RelevantLights
) const

Remarks

Retrieves the lights interacting with the passed in primitive and adds them to the out array.

Parameters

Parameter

Description

Primitive

Primitive to retrieve interacting lights for

RelevantLights

[out] Array of lights interacting with primitive