Quantum 3 3.0.14

Public Member Functions | Public Attributes | List of all members
Quantum.Prototypes.NavMeshAvoidanceObstaclePrototype Class Reference

Prototype of the NavMeshAvoidanceObstacle Quantum component. More...

Inherits Quantum.ComponentPrototype< Quantum.NavMeshAvoidanceObstacle >.

Public Member Functions

sealed override bool AddToEntity (FrameBase f, EntityRef entity, in PrototypeMaterializationContext context)
 Creates an instance of the NavMeshAvoidanceObstacle component, materializes and adds it to the entity. More...
 
unsafe void Materialize (FrameBase frame, ref NavMeshAvoidanceObstacle component)
 
void Materialize (FrameBase frame, ref Quantum.NavMeshAvoidanceObstacle result, in PrototypeMaterializationContext context)
 Applies the prototype's fields to the actual component. More...
 

Public Attributes

byte AvoidanceLayer
 The layer to be included or excluded in other agents masks. NavMeshAvoidanceAgent.AvoidanceMask. More...
 
bool IsActive = true
 If set to true, the obstacle is considered by avoidance agents. More...
 
FP Radius = FP._0_25
 The avoidance radius. More...
 

Detailed Description

Prototype of the NavMeshAvoidanceObstacle Quantum component.

Member Function Documentation

◆ AddToEntity()

sealed override bool Quantum.Prototypes.NavMeshAvoidanceObstaclePrototype.AddToEntity ( FrameBase  f,
EntityRef  entity,
in PrototypeMaterializationContext  context 
)
inline

Creates an instance of the NavMeshAvoidanceObstacle component, materializes and adds it to the entity.

Parameters
f
entity
context
Returns
Returns true if adding the component to the entity succeeds.

◆ Materialize()

void Quantum.Prototypes.NavMeshAvoidanceObstaclePrototype.Materialize ( FrameBase  frame,
ref Quantum.NavMeshAvoidanceObstacle  result,
in PrototypeMaterializationContext  context 
)
inline

Applies the prototype's fields to the actual component.

Member Data Documentation

◆ AvoidanceLayer

byte Quantum.Prototypes.NavMeshAvoidanceObstaclePrototype.AvoidanceLayer

The layer to be included or excluded in other agents masks. NavMeshAvoidanceAgent.AvoidanceMask.

◆ Radius

FP Quantum.Prototypes.NavMeshAvoidanceObstaclePrototype.Radius = FP._0_25

The avoidance radius.

◆ IsActive

bool Quantum.Prototypes.NavMeshAvoidanceObstaclePrototype.IsActive = true

If set to true, the obstacle is considered by avoidance agents.