USpotLightComponent

A spot light component emits a directional cone shaped light (Eg a Torch).

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/SpotLightComponent.h

Include

#include "Components/SpotLightComponent.h"

Syntax

class USpotLightComponent : public UPointLightComponent

Remarks

A spot light component emits a directional cone shaped light (Eg a Torch).

Variables

Name Description

Public variable

float

 

InnerConeAngle

Degrees.

Public variable

float

 

OuterConeAngle

Degrees.

Constructors

Name Description

Public function

USpotLightComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

float

 

GetCosHalfConeAngle()

Public function Const

float

 

GetHalfConeAngle()

Public function

void

 

SetInnerConeAngle

(
    float NewInnerConeAngle
)

Public function

void

 

SetOuterConeAngle

(
    float NewOuterConeAngle
)

Overridden from ULightComponent

Name Description

Public function Virtual Const

bool

 

AffectsBounds

(
    const FBoxSphereBounds& InBounds
)

Test whether the light affects the given bounding volume.

Public function Virtual Const

float

 

ComputeLightBrightness()

Compute current light brightness based on whether there is a valid IES profile texture attached, and whether IES brightness is enabled

Public function Virtual Const

FLightSceneP...

 

CreateSceneProxy()

Public function Virtual Const

FSphere

 

GetBoundingSphere()

Public function Virtual Const

ELightCompon...

 

GetLightType()

Public function Virtual

void

 

SetLightBrightness

(
    float InBrightness
)

Set the Intensity using the brightness. The unit of brightness depends on the light type.

Overridden from UActorComponent

Name Description

Public function Virtual Const

FBox

 

GetStreamingBounds()

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called after property has changed via e.g. property window or set command.