Navigation
API > API/Plugins > API/Plugins/ZoneGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UWorldSubsystem
- UTickableWorldSubsystem
- UZoneGraphSubsystem
References
| Module | ZoneGraph |
| Header | /Engine/Plugins/Runtime/ZoneGraph/Source/ZoneGraph/Public/ZoneGraphSubsystem.h |
| Include | #include "ZoneGraphSubsystem.h" |
Syntax
UCLASS&40;&41;
class UZoneGraphSubsystem : public UTickableWorldSubsystem
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bInitialized | ||
| FZoneGraphBuilder | Builder | ||
| FCriticalSection | DataRegistrationSection | ||
| FDelegateHandle | OnActorMovedHandle | ||
| FDelegateHandle | OnRequestRebuildHandle | ||
| TArray< FRegisteredZoneGraphData > | RegisteredZoneGraphData | ||
| TArray< int32 > | ZoneGraphDataFreeList |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AdvanceLaneLocation
(
const FZoneGraphLaneLocation& InLaneLocation, |
Moves LaneLocation along a lane. | |
| bool | CalculateLocationAlongLane
(
const FZoneGraphLaneHandle LaneHandle, |
Returns point at a distance along a specific lane. | |
| bool | FindLaneOverlaps
(
const FVector& Center, |
Find sections of lanes fully overlapping (including lane width). Finds results from all registered ZoneGraph data. | |
| bool | FindNearestLane
(
const FBox& QueryBounds, |
Find nearest lane that touches the query bounds. Finds results from all registered ZoneGraph data. | |
| bool | FindNearestLocationOnLane
(
const FZoneGraphLaneHandle LaneHandle, |
Find nearest location on a specific lane. | |
| bool | FindNearestLocationOnLane
(
const FZoneGraphLaneHandle LaneHandle, |
Find nearest location on a specific lane. | |
| bool | FindOverlappingLanes
(
const FBox& QueryBounds, |
Find overlapping lanes that touches the query bounds. Finds results from all registered ZoneGraph data. | |
| FZoneGraphBuilder & | GetBuilder () |
||
| FBox | Returns bounds of all ZoneGraph data. | ||
| bool | GetFirstLinkedLane
(
const FZoneGraphLaneHandle LaneHandle, |
Returns handle to first linked lane matching the connection type and flags. | |
| bool | GetLaneLength
(
const FZoneGraphLaneHandle LaneHandle, |
Returns the length of a specific lane. | |
| bool | GetLaneTags
(
const FZoneGraphLaneHandle LaneHandle, |
Returns the Tags of a specific lane. | |
| bool | GetLaneWidth
(
const FZoneGraphLaneHandle LaneHandle, |
Returns the width of a specific lane. | |
| bool | GetLinkedLanes
(
const FZoneGraphLaneHandle LaneHandle, |
Returns all links to connected lanes of a specific lane. | |
| TConstArrayView< FRegisteredZoneGraphData > | |||
| FZoneGraphTag | GetTagByName
(
FName TagName |
Returns tag based on name. | |
| const FZoneGraphTagInfo * | GetTagInfo
(
FZoneGraphTag Tag |
Returns info about a specific tag. | |
| TConstArrayView< FZoneGraphTagInfo > | GetTagInfos () |
Returns all tag infos. | |
| FName | GetTagName
(
FZoneGraphTag Tag |
Returns the name of a specific tag. | |
| const AZoneGraphData * | GetZoneGraphData
(
const FZoneGraphDataHandle DataHandle |
Returns Zone Graph data associated with specified handle. | |
| const FZoneGraphStorage * | GetZoneGraphStorage
(
const FZoneGraphDataHandle DataHandle |
Returns Zone Graph data storage associated with specified handle, or nullptr if not found. | |
| bool | IsLaneValid
(
const FZoneGraphLaneHandle LaneHandle |
Returns true if lane handle is valid. | |
| void | OnActorMoved
(
AActor* Actor |
||
| void | |||
| void | RebuildGraph
(
const bool bForceRebuild |
Rebuilds the graph. | |
| FZoneGraphDataHandle | RegisterZoneGraphData
(
AZoneGraphData& InZoneGraphData |
||
| void | |||
| void | RemoveRegisteredDataItem
(
const int32 Index |
||
| void | |||
| void | |||
| void | UnregisterZoneGraphData
(
AZoneGraphData& InZoneGraphData |
Overridden from UWorldSubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Called once all UWorldSubsystems have been initialized |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Implement this for deinitialization of instances of the system | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
USubsystem implementation Begin. |
Overridden from FTickableGameObject
| Type | Name | Description | |
|---|---|---|---|
| bool | Used to determine whether the object should be ticked in the editor. |