Skip to main content

NeighborQueryParams

NeighborQueryParams is passed into all implementations of INeighborQueryJobWrapper. It has NeighborhoodSettings containing properties like MaxNumNeighbors set up in the editor. There are also BaseBehaviorParams for the main entities (based on Main Tag), and BaseBehaviorParams for the potential neighbors (based on the tags specified in the neighbor query).

INeighborQueryJobWrapper.cs
public struct NeighborQueryParams
{
public BaseBehaviorParams MainBaseParams; // the entities which are looking for neighbors
public BaseBehaviorParams OtherBaseParams; // the entities which are potential neighbors
public NeighborhoodSettings NeighborhoodSettings; // information about the query
}