Navigation
Unreal Engine C++ API Reference > Runtime > Navmesh > Recast
References
Module | Navmesh |
Header | /Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
Include | #include "Recast/Recast.h" |
Syntax
class rcContext
Remarks
Provides an interface for optional logging and performance tracking of the Recast build process.
This class does not provide logging or timer functionality on its own. Both must be provided by a concrete implementation by overriding the protected member functions. Also, this class does not provide an interface for extracting log messages. (Only adding them.) So concrete implementations must provide one.
If no logging or timers are required, just pass an instance of this class through the Recast build process.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | m_logEnabled | True if logging is enabled. |
![]() |
bool | m_timerEnabled | True if the performance timers are enabled. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
rcContext
(
bool state |
Contructor. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
~rcContext () |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
int | doGetAccumulatedTime
(
const rcTimerLabel |
Returns the total accumulated time of the specified performance timer. |
![]() ![]() |
void | doLog
(
const rcLogCategory, |
Logs a message. |
![]() ![]() |
void | doResetLog () |
Clears all log entries. |
![]() ![]() |
void | Clears all timers. (Resets all to unused.) | |
![]() ![]() |
void | doStartTimer
(
const rcTimerLabel |
Starts the specified performance timer. |
![]() ![]() |
void | doStopTimer
(
const rcTimerLabel |
Stops the specified performance timer. |
![]() |
void | enableLog
(
bool state |
Enables or disables logging. |
![]() |
void | enableTimer
(
bool state |
Enables or disables the performance timers. |
![]() ![]() |
int | getAccumulatedTime
(
const rcTimerLabel label |
Returns the total accumulated time of the specified performance timer. |
![]() |
void | log
(
const rcLogCategory category, |
Logs a message. |
![]() |
void | resetLog () |
Clears all log entries. |
![]() |
void | resetTimers () |
Clears all peformance timers. (Resets all to unused.) |
![]() |
void | startTimer
(
const rcTimerLabel label |
Starts the specified performance timer. |
![]() |
void | stopTimer
(
const rcTimerLabel label |
Stops the specified performance timer. |