Files
UnrealEngine/Engine/Source/Runtime/AugmentedReality/Public/ARSkyLight.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

37 lines
934 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Components/SkyLightComponent.h"
#include "Engine/SkyLight.h"
#include "ARSkyLight.generated.h"
#define UE_API AUGMENTEDREALITY_API
class UAREnvironmentCaptureProbe;
/** This sky light class forces a refresh of the cube map data when an AR environment probe changes */
UCLASS(MinimalAPI)
class AARSkyLight :
public ASkyLight
{
GENERATED_UCLASS_BODY()
public:
/** Sets the environment capture probe that this sky light is driven by */
UFUNCTION(BlueprintCallable, Category="AR AugmentedReality|SkyLight")
UE_API void SetEnvironmentCaptureProbe(UAREnvironmentCaptureProbe* InCaptureProbe);
private:
UE_API virtual void Tick(float DeltaTime) override;
UPROPERTY()
TObjectPtr<UAREnvironmentCaptureProbe> CaptureProbe;
/** The timestamp from the environment probe when we last updated the cube map */
float LastUpdateTimestamp;
};
#undef UE_API