Used to set settings for every actor that is spawned into the world. 更多...
#include <CarlaSettingsDelegate.h>
Public 成员函数 | |
void | ApplyQualityLevelPostRestart () |
After loading a level, apply the current settings. | |
void | ApplyQualityLevelPreRestart () |
Before loading a level, apply the current settings. | |
void | RegisterSpawnHandler (UWorld *World) |
Create the event trigger handler for all the newly spawned actors to be processed with a custom function here. | |
void | Reset () |
Reset settings to default. | |
void | SetAllActorsDrawDistance (UWorld *world, float max_draw_distance) const |
UCarlaSettingsDelegate () | |
Private 成员函数 | |
void | CheckCarlaSettings (UWorld *world) |
Check that the world, instance and settings are valid and save the CarlaSettings instance. | |
UWorld * | GetLocalWorld () |
void | LaunchEpicQualityCommands (UWorld *world) const |
Execute engine commands to apply the epic quality level to the world. | |
void | LaunchLowQualityCommands (UWorld *world) const |
Execute engine commands to apply the low quality level to the world. | |
void | OnActorSpawned (AActor *Actor) |
Function to apply to the actor that is being spawned to apply the current settings. | |
void | SetActorComponentsDrawDistance (AActor *actor, float max_draw_distance) const |
void | SetAllLights (UWorld *world, float max_distance_fade, bool cast_shadows, bool hide_non_directional) const |
void | SetAllRoads (UWorld *world, float max_draw_distance, const TArray< FStaticMaterial > &road_pieces_materials) const |
void | SetPostProcessEffectsEnabled (UWorld *world, bool enabled) const |
Private 属性 | |
FOnActorSpawned::FDelegate | ActorSpawnedDelegate |
UCarlaSettings * | CarlaSettings = nullptr |
静态 Private 属性 | |
static EQualityLevel | AppliedLowPostResetQualityLevel = EQualityLevel::Epic |
Currently applied quality level after level is restarted. | |
Used to set settings for every actor that is spawned into the world.
在文件 CarlaSettingsDelegate.h 第 21 行定义.
UCarlaSettingsDelegate::UCarlaSettingsDelegate | ( | ) |
在文件 CarlaSettingsDelegate.cpp 第 27 行定义.
void UCarlaSettingsDelegate::ApplyQualityLevelPostRestart | ( | ) |
After loading a level, apply the current settings.
在文件 CarlaSettingsDelegate.cpp 第 73 行定义.
引用了 AppliedLowPostResetQualityLevel, CarlaSettings, CheckCarlaSettings(), Epic, UCarlaSettings::GetQualityLevel(), LaunchEpicQualityCommands(), LaunchLowQualityCommands(), Low, UCarlaSettings::LowLightFadeDistance, SetAllActorsDrawDistance(), SetAllLights(), SetAllRoads() , 以及 SetPostProcessEffectsEnabled().
被这些函数引用 ACarlaGameModeBase::InitGame().
void UCarlaSettingsDelegate::ApplyQualityLevelPreRestart | ( | ) |
Before loading a level, apply the current settings.
在文件 CarlaSettingsDelegate.cpp 第 120 行定义.
引用了 UCarlaSettings::bDisableRendering, CarlaSettings, CheckCarlaSettings() , 以及 IsValid().
被这些函数引用 ACarlaGameModeBase::RestartPlayer().
|
private |
Check that the world, instance and settings are valid and save the CarlaSettings instance.
world | used to get the instance of CarlaSettings. |
在文件 CarlaSettingsDelegate.cpp 第 152 行定义.
引用了 CarlaSettings, GetLocalWorld() , 以及 IsValid().
被这些函数引用 ApplyQualityLevelPostRestart(), ApplyQualityLevelPreRestart() , 以及 RegisterSpawnHandler().
|
private |
|
private |
Execute engine commands to apply the epic quality level to the world.
在文件 CarlaSettingsDelegate.cpp 第 371 行定义.
被这些函数引用 ApplyQualityLevelPostRestart().
|
private |
Execute engine commands to apply the low quality level to the world.
在文件 CarlaSettingsDelegate.cpp 第 169 行定义.
被这些函数引用 ApplyQualityLevelPostRestart().
|
private |
Function to apply to the actor that is being spawned to apply the current settings.
在文件 CarlaSettingsDelegate.cpp 第 43 行定义.
引用了 UCarlaSettings::CARLA_ROAD_TAG, CARLA_SETTINGS_MAX_SCALE_SIZE, UCarlaSettings::CARLA_SKY_TAG, CarlaSettings, UCarlaSettings::GetQualityLevel(), IsValid(), Low , 以及 SetActorComponentsDrawDistance().
void UCarlaSettingsDelegate::RegisterSpawnHandler | ( | UWorld * | World | ) |
Create the event trigger handler for all the newly spawned actors to be processed with a custom function here.
在文件 CarlaSettingsDelegate.cpp 第 37 行定义.
引用了 ActorSpawnedDelegate , 以及 CheckCarlaSettings().
被这些函数引用 ACarlaGameModeBase::InitGame().
void UCarlaSettingsDelegate::Reset | ( | ) |
Reset settings to default.
在文件 CarlaSettingsDelegate.cpp 第 32 行定义.
引用了 AppliedLowPostResetQualityLevel , 以及 Epic.
被这些函数引用 ACarlaGameModeBase::EndPlay().
|
private |
在文件 CarlaSettingsDelegate.cpp 第 291 行定义.
引用了 CARLA_SETTINGS_MAX_SCALE_SIZE , 以及 IsValid().
被这些函数引用 OnActorSpawned() , 以及 SetAllActorsDrawDistance().
void UCarlaSettingsDelegate::SetAllActorsDrawDistance | ( | UWorld * | world, |
float | max_draw_distance ) const |
@TODO: use semantics to grab all actors by type (vehicles,ground,people,props) and set different distances configured in the global properties
在文件 CarlaSettingsDelegate.cpp 第 318 行定义.
引用了 UCarlaSettings::CARLA_ROAD_TAG, UCarlaSettings::CARLA_SKY_TAG, IsValid() , 以及 SetActorComponentsDrawDistance().
被这些函数引用 ApplyQualityLevelPostRestart() , 以及 ACarlaGameModeBase::OnEpisodeSettingsChanged().
|
private |
在文件 CarlaSettingsDelegate.cpp 第 416 行定义.
引用了 IsValid().
被这些函数引用 ApplyQualityLevelPostRestart().
|
private |
在文件 CarlaSettingsDelegate.cpp 第 227 行定义.
引用了 UCarlaSettings::CARLA_ROAD_TAG , 以及 IsValid().
被这些函数引用 ApplyQualityLevelPostRestart().
|
private |
在文件 CarlaSettingsDelegate.cpp 第 352 行定义.
引用了 IsValid().
被这些函数引用 ApplyQualityLevelPostRestart().
|
private |
在文件 CarlaSettingsDelegate.h 第 88 行定义.
被这些函数引用 RegisterSpawnHandler().
|
staticprivate |
Currently applied quality level after level is restarted.
quality settings configuration between runs
在文件 CarlaSettingsDelegate.h 第 84 行定义.
被这些函数引用 ApplyQualityLevelPostRestart() , 以及 Reset().
|
private |
在文件 CarlaSettingsDelegate.h 第 86 行定义.
被这些函数引用 ApplyQualityLevelPostRestart(), ApplyQualityLevelPreRestart(), CheckCarlaSettings() , 以及 OnActorSpawned().