Navigation
API > API/Runtime > API/Runtime/Navmesh
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.
| Name | rcContext |
| Type | class |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
| Include Path | #include "Recast/Recast.h" |
Syntax
class rcContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
rcContext
(
bool state |
Contructor. | Recast/Recast.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~rcContext() |
Recast/Recast.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void enableLog
(
bool state |
Enables or disables logging. | Recast/Recast.h | |
void enableTimer
(
bool state |
Enables or disables the performance timers. | Recast/Recast.h | |
int getAccumulatedTime
(
const rcTimerLabel label |
Returns the total accumulated time of the specified performance timer. | Recast/Recast.h | |
void log
(
const rcLogCategory category, |
Logs a message. | Recast/Recast.h | |
void resetLog() |
Clears all log entries. | Recast/Recast.h | |
void resetTimers() |
Clears all peformance timers. (Resets all to unused.) | Recast/Recast.h | |
void startTimer
(
const rcTimerLabel label |
Starts the specified performance timer. | Recast/Recast.h | |
void stopTimer
(
const rcTimerLabel label |
Stops the specified performance timer. | Recast/Recast.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int doGetAccumulatedTime
(
const rcTimerLabel |
Returns the total accumulated time of the specified performance timer. | Recast/Recast.h | |
virtual void doLog
(
const rcLogCategory, |
Logs a message. | Recast/Recast.h | |
virtual void doResetLog() |
Clears all log entries. | Recast/Recast.h | |
virtual void doResetTimers() |
Clears all timers. (Resets all to unused.) | Recast/Recast.h | |
virtual void doStartTimer
(
const rcTimerLabel |
Starts the specified performance timer. | Recast/Recast.h | |
virtual void doStopTimer
(
const rcTimerLabel |
Stops the specified performance timer. | Recast/Recast.h |