22 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin =
"0.0", ClampMax =
"360.0"))
23 float SunAzimuthAngle = 0.0f;
25 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "-90.0", ClampMax = "90.0"))
26 float SunAltitudeAngle = 75.0f;
36 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin =
"0.0", ClampMax =
"100.0"))
37 float Cloudiness = 0.0f;
39 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0.0", ClampMax = "100.0"))
40 float Precipitation = 0.0f;
42 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0.0", ClampMax = "100.0"))
43 float PrecipitationDeposits = 0.0f;
45 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0.0", ClampMax = "100.0"))
46 float WindIntensity = 0.35f;
48 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0.0"))
49 float FogDensity = 0.0f;
51 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0.0"))
52 float FogDistance = 0.0f;
54 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0.0"))
55 float FogFalloff = 0.2f;
57 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0.0", ClampMax = "100.0"))
60 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0.0", ClampMax = "100.0"))
61 float ScatteringIntensity = 0.0f;
63 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0.0", ClampMax = "5.0"))
64 float MieScatteringScale = 0.0f;
66 UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0.0", ClampMax = "2.0"))
67 float RayleighScatteringScale = 0.0331f;
84 UFUNCTION(BlueprintCallable, Category =
"Weather|JSON")
87 UFUNCTION(BlueprintCallable, Category =
"Weather|JSON")
88 static bool LoadTimePreset(UPARAM(ref)
FWeatherTimePreset& OutPreset,
const FString& Name);
90 UFUNCTION(BlueprintCallable, Category =
"Weather|JSON")
93 UFUNCTION(BlueprintCallable, Category =
"Weather|JSON")
98 UFUNCTION(BlueprintCallable, BlueprintPure, Category =
"Weather|JSON")
99 static TArray<FString> GetAvailableTimePresetNames();
101 UFUNCTION(BlueprintCallable, BlueprintPure, Category =
"Weather|JSON")
102 static TArray<FString> GetAvailableConditionPresetNames();
107 UFUNCTION(BlueprintCallable, BlueprintPure, Category =
"Weather|JSON")
116 UFUNCTION(BlueprintCallable, Category =
"Weather|JSON")
117 static bool GetMapDefaultPresetNames(
const FString& MapName, FString& OutTimeName, FString& OutConditionName);
121 UFUNCTION(BlueprintCallable, Category =
"Weather|JSON")
122 static bool SetMapDefaultPresetNames(
const FString& MapName,
const FString& TimeName,
const FString& ConditionName);
132 UFUNCTION(BlueprintCallable, Category =
"Weather|JSON")
137 UFUNCTION(BlueprintCallable, Category =
"Weather|JSON")
142 return FPaths::ProjectContentDir() / TEXT(
"Carla/Config/Weather/Presets.json");
147 return FPaths::ProjectContentDir() / TEXT(
"Carla/Config/Weather/MapDefaults.json");