14UCarlaLight::UCarlaLight()
17 PrimaryComponentTick.bCanEverTick =
false;
21void UCarlaLight::BeginPlay()
31void UCarlaLight::RegisterLight()
40 UWorld *
World = GetWorld();
49 RegisterLightWithWeather();
55void UCarlaLight::OnComponentDestroyed(
bool bDestroyingHierarchy)
58 Super::OnComponentDestroyed(bDestroyingHierarchy);
62void UCarlaLight::EndPlay(
const EEndPlayReason::Type EndPlayReason)
65 UWorld *
World = GetWorld();
74 Super::EndPlay(EndPlayReason);
78void UCarlaLight::SetLightIntensity(
float Intensity)
81 LightIntensity = Intensity;
87float UCarlaLight::GetLightIntensity()
const
89 return LightIntensity;
93void UCarlaLight::SetLightColor(FLinearColor Color)
104FLinearColor UCarlaLight::GetLightColor()
const
110void UCarlaLight::SetLightOn(
bool bOn)
120bool UCarlaLight::GetLightOn()
const
126void UCarlaLight::SetLightType(
ELightType Type)
173FVector UCarlaLight::GetLocation()
const
176 auto Location = GetOwner()->GetActorLocation();
190int UCarlaLight::GetId()
const
196void UCarlaLight::SetId(
int InId)
202void UCarlaLight::RecordLightChange()
const
209 auto* Recorder = Episode->GetRecorder();
210 if (Recorder && Recorder->IsEnabled())
213 Recorder->AddEventLightSceneChanged(
this);
FVehicleLightState LightState
TSharedPtr< const FActorInfo > carla::rpc::ActorState UWorld * World
ALargeMapManager * GetLMManager() const
FVector LocalToGlobalLocation(const FVector &InLocation) const
void RegisterLight(UCarlaLight *CarlaLight)
void UnregisterLight(UCarlaLight *CarlaLight)
static UCarlaEpisode * GetCurrentEpisode(const UObject *WorldContextObject)
static ACarlaGameModeBase * GetGameMode(const UObject *WorldContextObject)