#include <OpenDriveActor.h>
Public 成员函数 | |
void | AddSpawners () |
AOpenDriveActor (const FObjectInitializer &ObjectInitializer) | |
void | BuildRoutes () |
构造函数 | |
void | BuildRoutes (FString MapName) |
构建路径 | |
void | DebugRoutes () const |
void | RemoveDebugRoutes () const |
void | RemoveRoutes () |
根据地图名称构建路径 | |
void | RemoveSpawners () |
Public 属性 | |
TArray< ARoutePlanner * > | RoutePlanners |
Protected 属性 | |
UBillboardComponent * | SpriteComponent |
Billboard组件用于显示图标精灵。 | |
UTexture2D * | SpriteTexture |
Billboard组件使用的精灵 | |
Private 属性 | |
bool | bAddSpawners = false |
如果编译时包含编辑器数据。 | |
bool | bOnIntersections = false |
如果为true,在交叉路口也放置生成器 | |
float | RoadAccuracy = 2.f |
车辆行驶的路径点之间的距离。 | |
float | SpawnersHeight = 300.f |
确定生成器放置的高度,相对于每个RoutePlanner。 | |
float | TriggersHeight = 100.f |
触发器的高程 | |
TArray< AVehicleSpawnPoint * > | VehicleSpawners |
定义一个数组属性,存储VehicleSpawnPoint对象 | |
在文件 OpenDriveActor.h 第 22 行定义.
AOpenDriveActor::AOpenDriveActor | ( | const FObjectInitializer & | ObjectInitializer | ) |
在文件 OpenDriveActor.cpp 第 30 行定义.
引用了 SpriteComponent.
void AOpenDriveActor::AddSpawners | ( | ) |
在文件 OpenDriveActor.cpp 第 290 行定义.
引用了 bOnIntersections, RoutePlanners, SpawnersHeight , 以及 VehicleSpawners.
void AOpenDriveActor::BuildRoutes | ( | ) |
构造函数
在文件 OpenDriveActor.cpp 第 153 行定义.
引用了 BuildRoutes().
被这些函数引用 BuildRoutes().
void AOpenDriveActor::BuildRoutes | ( | FString | MapName | ) |
void AOpenDriveActor::DebugRoutes | ( | ) | const |
在文件 OpenDriveActor.cpp 第 272 行定义.
引用了 RoutePlanners.
void AOpenDriveActor::RemoveDebugRoutes | ( | ) | const |
在文件 OpenDriveActor.cpp 第 283 行定义.
void AOpenDriveActor::RemoveRoutes | ( | ) |
根据地图名称构建路径
移除这个类之前生成的所有ARoutePlanner和VehicleSpawners以避免重叠
在文件 OpenDriveActor.cpp 第 259 行定义.
引用了 RoutePlanners.
void AOpenDriveActor::RemoveSpawners | ( | ) |
在文件 OpenDriveActor.cpp 第 312 行定义.
引用了 VehicleSpawners.
|
private |
|
private |
|
private |
TArray<ARoutePlanner *> AOpenDriveActor::RoutePlanners |
在文件 OpenDriveActor.h 第 112 行定义.
被这些函数引用 AddSpawners(), BuildRoutes(), DebugRoutes() , 以及 RemoveRoutes().
|
private |
|
protected |
|
protected |
Billboard组件使用的精灵
在文件 OpenDriveActor.h 第 32 行定义.
|
private |
|
private |
定义一个数组属性,存储VehicleSpawnPoint对象
在文件 OpenDriveActor.h 第 37 行定义.
被这些函数引用 AddSpawners() , 以及 RemoveSpawners().