Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- ULightComponentBase
- ULightComponent
- ULocalLightComponent
- URectLightComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/RectLightComponent.h |
| Include | #include "Components/RectLightComponent.h" |
Syntax
class URectLightComponent : public ULocalLightComponent
Remarks
A light component which emits light from a rectangle.
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | BarnDoorAngle | Angle of barn door attached to the light source rect. | |
| float | BarnDoorLength | Length of barn door attached to the light source rect. | |
| float | SourceHeight | Height of light source rect. | |
| TObjectPtr< class UTexture > | SourceTexture | Texture mapped to the light source rectangle | |
| float | SourceWidth | Width of light source rect. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
URectLightComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | SetBarnDoorAngle
(
float NewValue |
||
| void | SetBarnDoorLength
(
float NewValue |
||
| void | SetSourceHeight
(
float NewValue |
||
| void | SetSourceTexture
(
UTexture* NewValue |
||
| void | SetSourceWidth
(
float NewValue |
Overridden from ULightComponent
| Type | Name | Description | |
|---|---|---|---|
| float | Compute current light brightness based on whether there is a valid IES profile texture attached, and whether IES brightness is enabled | ||
| FLightSceneProxy * | |||
| ELightComponentType | GetLightType () |
||
| float | |||
| void | SetLightBrightness
(
float InBrightness |
Set the Intensity using the brightness. The unit of brightness depends on the light type. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called after property has changed via e.g. property window or set command. |