#include <OpenDriveActor.h>
类 AOpenDriveActor 继承关系图:
AOpenDriveActor 的协作图: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().