Navigation
API > API/Plugins > API/Plugins/ZoneGraphAnnotations > API/Plugins/ZoneGraphAnnotations/Annotations
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UPrimitiveComponent
- UDebugDrawComponent
- UZoneGraphAnnotationComponent
- UZoneGraphDisturbanceAnnotation
References
| Module | ZoneGraphAnnotations |
| Header | /Engine/Plugins/Runtime/ZoneGraphAnnotations/Source/ZoneGraphAnnotations/Public/Annotations/ZoneGraphDisturbanceAnnotation.h |
| Include | #include "Annotations/ZoneGraphDisturbanceAnnotation.h" |
Syntax
UCLASS&40;ClassGroup&61;AI, BlueprintType, Meta&61;&40;BlueprintSpawnableComponent&41;&41;
class UZoneGraphDisturbanceAnnotation : public UZoneGraphAnnotationComponent
Remarks
ZoneGraph Disturbance Annotation
Variables
| Type | Name | Description | |
|---|---|---|---|
| FZoneGraphTagFilter | AffectedLaneTags | Filter specifying which lanes the Annotation is applied to. | |
| bool | bDisturbancesChanged | Flag indicating if the event processing changed the dangers. | |
| FZoneGraphTag | DangerAnnotationTag | Tag to mark the lanes that should be fled. | |
| TArray< FZoneGraphDisturbanceArea > | Dangers | Array of currently active dangers. | |
| TArray< FZoneGraphDataEscapeGraph > | EscapeGraphs | Disturbance graph for each ZoneGraphData | |
| FZoneGraphTagFilter | EscapeLaneTags | Filter specifying which lanes can be used during Disturbance. | |
| float | IdealSpanLength | Ideal span length for lane subdivision. Each lane will have between 2 and 8 spans. | |
| FVector | LastDebugDrawLocation | ||
| FZoneGraphTag | ObstacleAnnotationTag | Tag to mark the lanes influenced by an obstacle. | |
| TArray< FZoneGraphObstacleDisturbanceArea > | Obstacles | Array of obstacles. | |
| FZoneGraphTagMask | PreviouslyAppliedTags | Combined mask of tags added in previous update (used for clearing previous state) | |
| TObjectPtr< UZoneGraphSubsystem > | ZoneGraphSubsystem | Cached ZoneGraphSubsystem |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UZoneGraphDisturbanceAnnotation
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CalculateEscapeGraph
(
FZoneGraphDataEscapeGraph& EscapeGraph |
||
| const FZoneGraphEscapeLaneAction * | GetEscapeAction
(
const FZoneGraphLaneHandle LaneHandle |
||
| void | UpdateAnnotationTags
(
FZoneGraphAnnotationTagContainer& AnnotationTagContainer |
||
| void |
Overridden from UZoneGraphAnnotationComponent
| Type | Name | Description | |
|---|---|---|---|
| void | DebugDraw
(
FZoneGraphAnnotationSceneProxy* DebugProxy |
Called when scene proxy is rebuilt. | |
| void | DebugDrawCanvas
(
UCanvas* Canvas, |
Called when it's time to draw to canvas. | |
| FZoneGraphTagMask | |||
| void | HandleEvents
(
const FInstancedStructContainer& Events |
Called when new events are ready to be processed | |
| void | Called during OnRegister(), or after all subsystems have been initialized. | ||
| void | PostZoneGraphDataAdded
(
const AZoneGraphData& ZoneGraphData |
Called when new ZoneGraph data is added. | |
| void | PreZoneGraphDataRemoved
(
const AZoneGraphData& ZoneGraphData |
Called when new ZoneGraph data is removed. | |
| void | TickAnnotation
(
const float DeltaTime, |
Ticks the Annotation and changes the tags in the container when needed. |