Class NavModifierVolume
A special type of volume that defines the area of the scene in which navigation is restricted (eg. higher traversal cost or dynamic obstacle block).
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Navigation/NavModifierVolume.h
Syntax
public class NavModifierVolume : public BoxVolume
Fields
AgentsMask
The agent types used by this navmesh modifier volume (from navigation settings). Can be used to adjust navmesh for a certain set of agents.
Declaration
public NavAgentMask AgentsMask
Field Value
NavAgentMask
|
AreaName
The name of the nav area to apply within the modifiers volume. Nav area properties are picked from the Navigation Settings asset.
Declaration
public String AreaName
Field Value
String
|
Methods
Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
Deserializes object from the input stream.
Declaration
public virtual void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override
Parameters
DeserializeStream
stream
The input stream. |
ISerializeModifier
modifier
The deserialization modifier object. Always valid. |
Overrides
GetNavArea()
Gets the properties of the nav area used by this volume. Null if missing or invalid area name.
Declaration
public NavAreaProperties* GetNavArea() const
Returns
NavAreaProperties
|
GetWiresColor()
OnBoundsChanged(const BoundingBox& prevBounds)
Declaration
protected virtual void OnBoundsChanged(const BoundingBox& prevBounds) override
Parameters
BoundingBox
prevBounds
|
Overrides
OnDisable()
Called when actor gets removed from game systems. Occurs on EndPlay event or when actor gets inactivated in hierarchy. Use this event to unregister object from other game system (eg. audio).
Declaration
public virtual void OnDisable() override
Overrides
OnEnable()
Called when actor gets added to game systems. Occurs on BeginPlay event or when actor gets activated in hierarchy. Use this event to register object to other game system (eg. audio).
Declaration
public virtual void OnEnable() override
Overrides
Serialize(SerializeStream& stream, const void* otherObj)
Serializes object to the output stream compared to the values of the other object instance (eg. default class object). If other object is null then serialize all properties.
Declaration
public virtual void Serialize(SerializeStream& stream, const void* otherObj) override
Parameters
SerializeStream
stream
The output stream. |
void
otherObj
The instance of the object to compare with and serialize only the modified properties. If null, then serialize all properties. |