Navigation
API > API/Runtime > API/Runtime/Engine
A spot light component emits a directional cone shaped light (Eg a Torch).
| Name | USpotLightComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SpotLightComponent.h |
| Include Path | #include "Components/SpotLightComponent.h" |
Syntax
UCLASS (Blueprintable, ClassGroup=Lights, HideCategories=Object, EditInlineNew,
Meta=(BlueprintSpawnableComponent), MinimalAPI)
class USpotLightComponent : public UPointLightComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → ULightComponentBase → ULightComponent → ULocalLightComponent → UPointLightComponent → USpotLightComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
USpotLightComponent
(
const FObjectInitializer& ObjectInitializer |
Components/SpotLightComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| InnerConeAngle | float | Degrees. | Components/SpotLightComponent.h |
|
| OuterConeAngle | float | Degrees. | Components/SpotLightComponent.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetCosHalfConeAngle() |
Components/SpotLightComponent.h | ||
float GetHalfConeAngle() |
Components/SpotLightComponent.h | ||
void SetInnerConeAngle
(
float NewInnerConeAngle |
Components/SpotLightComponent.h |
|
|
void SetOuterConeAngle
(
float NewOuterConeAngle |
Components/SpotLightComponent.h |
|
Overridden from ULightComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AffectsBounds
(
const FBoxSphereBounds& InBounds |
Test whether the light affects the given bounding volume. | Components/SpotLightComponent.h | |
virtual float ComputeLightBrightness() |
Compute current light brightness based on whether there is a valid IES profile texture attached, and whether IES brightness is enabled | Components/SpotLightComponent.h | |
virtual FLightSceneProxy * CreateSceneProxy() |
Components/SpotLightComponent.h | ||
virtual FSphere GetBoundingSphere() |
Components/SpotLightComponent.h | ||
virtual ELightComponentType GetLightType() |
Components/SpotLightComponent.h | ||
virtual void SetLightBrightness
(
float InBrightness |
Set the Intensity using the brightness. The unit of brightness depends on the light type. | Components/SpotLightComponent.h |
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FBox GetStreamingBounds() |
Components/SpotLightComponent.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called after property has changed via e.g. property window or set command. | Components/SpotLightComponent.h |