Language:
Discover
By Skill Level
By Category

USpotLightComponent

Choose your OS:

Inheritance Hierarchy

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

 

LightShaftConeAngle

Degrees.

Public variable

float

 

OuterConeAngle

Degrees.

Constructors

Name Description

Public function

USpotLightComponent

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function

void

 

SetInnerConeAngle

(
    float NewInnerConeAngle
)

Public function

void

 

SetOuterConeAngle

(
    float NewOuterConeAngle
)

Overridden from ULightComponent

Name Description

Public function Virtual

bool

 

AffectsBounds

(
    const FBoxSphereBounds & InBounds
)

Test whether the light affects the given bounding volume.

Public function Virtual

FLightSceneP ...

 

CreateSceneProxy()

Disable for now void USpotLightComponent::SetLightShaftConeAngle(float NewLightShaftConeAngle) { if (NewLightShaftConeAngle != LightShaftConeAngle) { LightShaftConeAngle = NewLightShaftConeAngle; MarkRenderStateDirty() ; } }

Public function Virtual

FSphere

 

GetBoundingSphere()

Disable for now.

Public function Virtual

ELightCompon ...

 

GetLightType()

ELightComponentType for the light component class

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.

References

Module

Engine

Header

Runtime/Engine/Classes/Components/SpotLightComponent.h