Table of Contents

Class FieldViewQueryComponent

Namespace
Ceres.Gameplay.AI.EQS
Assembly
Ceres.Gameplay.dll

Field view prime query data provider associated with an Actor as component

public class FieldViewQueryComponent : ActorComponent
Inheritance
FieldViewQueryComponent
Inherited Members

Constructors

FieldViewQueryComponent()

public FieldViewQueryComponent()

Fields

fieldView

public FieldView fieldView

Field Value

FieldView

offset

public Vector3 offset

Field Value

Vector3

queryLayerMask

public LayerMask queryLayerMask

Field Value

LayerMask

Methods

CollectViewActors(List<Actor>)

Query actors overlap in field of view from cache

public void CollectViewActors(List<Actor> actors)

Parameters

actors List<Actor>

CollectViewActors<T>(List<T>)

Query actors overlap in field of view from cache with specific type

public void CollectViewActors<T>(List<T> actors) where T : Actor

Parameters

actors List<T>

Type Parameters

T

Detect(Vector3, Vector3, Quaternion, string[])

Detect whether it can see the target

public bool Detect(Vector3 target, Vector3 fromPosition, Quaternion fromRotation, string[] filterTags = null)

Parameters

target Vector3
fromPosition Vector3
fromRotation Quaternion
filterTags string[]

Returns

bool

RequestFieldViewQuery()

Request a new query from target's field view

public bool RequestFieldViewQuery()

Returns

bool