UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PointLightComponent.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4#pragma once
5
6#include "CoreMinimal.h"
10#include "PointLightComponent.generated.h"
11
13
17UCLASS(Blueprintable, ClassGroup=(Lights,Common), hidecategories=(Object, LightShafts), editinlinenew, meta=(BlueprintSpawnableComponent), MinimalAPI)
18class UPointLightComponent : public ULocalLightComponent
19{
21
22
28 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Light, AdvancedDisplay)
29 uint32 bUseInverseSquaredFalloff:1;
30
36 UPROPERTY(interp, BlueprintReadOnly, Category=Light, AdvancedDisplay, meta=(UIMin = "2.0", UIMax = "16.0"))
38
43 UPROPERTY(EditAnywhere, BlueprintReadOnly, interp, Category=Light, meta=(UIMin = "0.0", UIMax = "1000.0", ClampMax = "10000", ShouldShowInViewport = true))
44 float SourceRadius;
45
50 UPROPERTY(EditAnywhere, BlueprintReadOnly, interp, Category = Light, meta=(UIMin = "0.0", UIMax = "1000.0", ClampMax = "10000"))
51 float SoftSourceRadius;
52
57 UPROPERTY(EditAnywhere, BlueprintReadOnly, interp, Category=Light, meta=(UIMin = "0.0", UIMax = "1000.0", ClampMax = "10000"))
58 float SourceLength;
59
60 UFUNCTION(BlueprintCallable, Category = "Rendering|Lighting")
62
63 UFUNCTION(BlueprintCallable, Category="Rendering|Lighting")
65
66 UFUNCTION(BlueprintCallable, Category = "Rendering|Lighting")
68
69 UFUNCTION(BlueprintCallable, Category="Rendering|Lighting")
70 ENGINE_API void SetSourceRadius(float bNewValue);
71
72 UFUNCTION(BlueprintCallable, Category = "Rendering|Lighting")
74
75 UFUNCTION(BlueprintCallable, Category="Rendering|Lighting")
76 ENGINE_API void SetSourceLength(float NewValue);
77
78public:
79
80 ENGINE_API virtual float ComputeLightBrightness() const override;
81#if WITH_EDITOR
82 ENGINE_API virtual void SetLightBrightness(float InBrightness) override;
83#endif
84
85 //~ Begin ULightComponent Interface.
86 ENGINE_API virtual ELightComponentType GetLightType() const override;
87 ENGINE_API virtual float GetUniformPenumbraSize() const override;
88 ENGINE_API virtual FLightSceneProxy* CreateSceneProxy() const override;
89
90 //~ Begin UObject Interface
91 ENGINE_API virtual void Serialize(FArchive& Ar) override;
92#if WITH_EDITOR
93 ENGINE_API virtual bool CanEditChange(const FProperty* InProperty) const override;
94 ENGINE_API virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
95#endif // WITH_EDITOR
96 //~ End UObject Interface
97};
98
99
100
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
ELightComponentType
Definition SceneTypes.h:96
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Archive.h:1208
Definition LightSceneProxy.h:43
Definition UnrealType.h:174
Definition UnrealType.h:6865