UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SpotLight.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "Engine/Light.h"
8#include "SpotLight.generated.h"
9
10UCLASS(ClassGroup=(Lights, SpotLights), MinimalAPI, ComponentWrapperClass, meta=(ChildCanTick))
11class ASpotLight : public ALight
12{
14
15 UPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category="Light", meta=(ExposeFunctionCategories="SpotLight,Rendering|Lighting"))
17
18#if WITH_EDITORONLY_DATA
19 // Reference to editor arrow component visualization
20private:
21 UPROPERTY()
23public:
24#endif
25
26 // BEGIN DEPRECATED (use component functions now in level script)
27 UFUNCTION(BlueprintCallable, Category="Rendering|Lighting", meta=(DeprecatedFunction))
28 void SetInnerConeAngle(float NewInnerConeAngle);
29 UFUNCTION(BlueprintCallable, Category="Rendering|Lighting", meta=(DeprecatedFunction))
30 void SetOuterConeAngle(float NewOuterConeAngle);
31 // END DEPRECATED
32
33 // Disable this for now
34 //UFUNCTION(BlueprintCallable, Category="Rendering|Lighting")
35 //void SetLightShaftConeAngle(float NewLightShaftConeAngle);
36
37#if WITH_EDITOR
38 //~ Begin AActor Interface.
39 virtual void EditorApplyScale(const FVector& DeltaScale, const FVector* PivotLocation, bool bAltDown, bool bShiftDown, bool bCtrlDown) override;
40 //~ End AActor Interface.
41#endif
42
43 //~ Begin UObject Interface
44 virtual void PostLoad() override;
45#if WITH_EDITOR
46 virtual void LoadedFromAnotherClass(const FName& OldClassName) override;
47 virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
48#endif
49 //~ End UObject Interface
50
51
52public:
53#if WITH_EDITORONLY_DATA
55 class UArrowComponent* GetArrowComponent() const { return ArrowComponent; }
56#endif
57};
58
59
60
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#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
Definition NameTypes.h:617
Definition SpotLightComponent.h:17
Definition UnrealType.h:6865
Definition ObjectPtr.h:488