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