|
Inventory Engine v4.2
|
Classes | |
| struct | DebugLogItem |
| A struct used to store log items. More... | |
| struct | MMDebugLogEvent |
| An event used to broadcast debug logs. More... | |
Static Public Member Functions | |
| static void | DebugLogCommand (string command) |
| Tries to input a command. | |
| static void | DebugLogClear () |
| Clears the debug log. | |
| static void | DebugLogInfo (object message, string color="", int timePrecision=3, bool displayFrameCount=true) |
| Outputs an info message to the console. | |
| static void | DebugLogTime (object message, string color="", int timePrecision=3, bool displayFrameCount=true) |
| Outputs the message object to the console, prefixed with the current timestamp. | |
| static DebugLogItem | LogDebugToConsole (object message, string color, int timePrecision, bool displayFrameCount) |
| Logs the specified message to the console. | |
| static void | SetDebugLogsEnabled (bool status) |
| Enables or disables debug logs. | |
| static void | SetDebugDrawEnabled (bool status) |
| Enables or disables debug draws. | |
| static RaycastHit | Raycast3D (Vector3 rayOriginPoint, Vector3 rayDirection, float rayDistance, LayerMask mask, Color color, bool drawGizmo=false, QueryTriggerInteraction queryTriggerInteraction=QueryTriggerInteraction.UseGlobal) |
| Draws a debug ray in 3D and does the actual raycast. | |
| static void | DrawGizmoArrow (Vector3 origin, Vector3 direction, Color color, float arrowHeadLength=3f, float arrowHeadAngle=25f) |
| Draws a gizmo arrow going from the origin position and along the direction Vector3. | |
| static void | DebugDrawArrow (Vector3 origin, Vector3 direction, Color color, float arrowHeadLength=0.2f, float arrowHeadAngle=35f) |
| Draws a debug arrow going from the origin position and along the direction Vector3. | |
| static void | DebugDrawArrow (Vector3 origin, Vector3 direction, Color color, float arrowLength, float arrowHeadLength=0.20f, float arrowHeadAngle=35.0f) |
| Draws a debug arrow going from the origin position and along the direction Vector3. | |
| static void | DebugDrawCross (Vector3 spot, float crossSize, Color color) |
| Draws a debug cross of the specified size and color at the specified point. | |
| static void | DrawHandlesBounds (Bounds bounds, Color color) |
| Draws handles to materialize the bounds of an object on screen. | |
| static void | DrawSolidRectangle (Vector3 position, Vector3 size, Color borderColor, Color solidColor) |
| Draws a solid rectangle at the specified position and size, and of the specified colors. | |
| static void | DrawGizmoPoint (Vector3 position, float size, Color color) |
| Draws a gizmo sphere of the specified size and color at a position. | |
| static void | DrawCube (Vector3 position, Color color, Vector3 size) |
| Draws a cube at the specified position, and of the specified color and size. | |
| static void | DrawGizmoCube (Transform transform, Vector3 offset, Vector3 cubeSize, bool wireOnly) |
| Draws a cube at the specified position, offset, and of the specified size. | |
| static void | DrawGizmoRectangle (Vector2 center, Vector2 size, Color color) |
| Draws a gizmo rectangle. | |
| static void | DrawGizmoRectangle (Vector2 center, Vector2 size, Matrix4x4 rotationMatrix, Color color) |
| Draws a gizmo rectangle. | |
| static void | DrawRectangle (Rect rectangle, Color color) |
| Draws a rectangle based on a Rect and color. | |
| static void | DrawRectangle (Vector3 position, Color color, Vector3 size) |
| Draws a rectangle of the specified color and size at the specified position. | |
| static void | DrawPoint (Vector3 position, Color color, float size) |
| Draws a point of the specified color and size at the specified position. | |
| static void | DrawGizmoPoint (Vector3 position, Color color, float size) |
| Draws a line of the specified color and size using gizmos. | |
| static string | GetSystemInfo () |
| static void | ClearConsole () |
Static Public Attributes | |
| static List< DebugLogItem > | LogHistory = new List<DebugLogItem>(_logHistoryMaxLength) |
| A list of all the debug logs (up to DebugLogMaxLength entries) | |
Properties | |
| static MethodInfo[] | Commands [get] |
| Returns a list of all the debug command lines found in the project's assemblies. | |
| static string | LogHistoryText [get] |
| Returns a string with all log history condensed. | |
| static bool | DebugLogsEnabled [get] |
| whether or not debug logs (MMDebug.DebugLogTime, MMDebug.DebugOnScreen) should be displayed | |
| static bool | DebugDrawEnabled [get] |
| whether or not debug draws should be executed | |
Debug helpers.
|
static |
|
static |
Draws a debug arrow going from the origin position and along the direction Vector3.
| origin | Origin. |
| direction | Direction. |
| color | Color. |
|
static |
Draws a debug arrow going from the origin position and along the direction Vector3.
| origin | Origin. |
| direction | Direction. |
| color | Color. |
| arrowLength | Arrow length. |
| arrowHeadLength | Arrow head length. |
| arrowHeadAngle | Arrow head angle. |
|
static |
Draws a debug cross of the specified size and color at the specified point.
| spot | Spot. |
| crossSize | Cross size. |
| color | Color. |
|
static |
Clears the debug log.
|
static |
Tries to input a command.
| command |
|
static |
Outputs an info message to the console.
| message | |
| color | |
| timePrecision | |
| displayFrameCount |
|
static |
Outputs the message object to the console, prefixed with the current timestamp.
| message | Message. |
|
static |
Draws a cube at the specified position, and of the specified color and size.
| position | Position. |
| color | Color. |
| size | Size. |
|
static |
Draws a gizmo arrow going from the origin position and along the direction Vector3.
| origin | Origin. |
| direction | Direction. |
| color | Color. |
|
static |
Draws a cube at the specified position, offset, and of the specified size.
| transform | |
| offset | |
| cubeSize | |
| wireOnly |
|
static |
Draws a line of the specified color and size using gizmos.
| position | |
| color | |
| size |
|
static |
Draws a gizmo sphere of the specified size and color at a position.
| position | Position. |
| size | Size. |
| color | Color. |
|
static |
Draws a gizmo rectangle.
| center | Center. |
| size | Size. |
| color | Color. |
|
static |
Draws a gizmo rectangle.
| center | Center. |
| size | Size. |
| color | Color. |
|
static |
Draws handles to materialize the bounds of an object on screen.
| bounds | Bounds. |
| color | Color. |
|
static |
Draws a point of the specified color and size at the specified position.
| pos | Position. |
| col | Col. |
| scale | Scale. |
|
static |
Draws a rectangle based on a Rect and color.
| rectangle | Rectangle. |
| color | Color. |
|
static |
Draws a rectangle of the specified color and size at the specified position.
| position | Position. |
| color | Color. |
| size | Size. |
|
static |
Draws a solid rectangle at the specified position and size, and of the specified colors.
| position | |
| size | |
| borderColor | |
| solidColor |
|
static |
|
static |
Logs the specified message to the console.
| message | |
| color | |
| timePrecision | |
| displayFrameCount |
|
static |
Draws a debug ray in 3D and does the actual raycast.
| rayOriginPoint | Ray origin point. |
| rayDirection | Ray direction. |
| rayDistance | Ray distance. |
| mask | Mask. |
| debug | If set to true debug. |
| color | Color. |
| drawGizmo | If set to true draw gizmo. |
|
static |
Enables or disables debug draws.
| status |
|
static |
Enables or disables debug logs.
| status |
|
static |
A list of all the debug logs (up to DebugLogMaxLength entries)
|
staticget |
Returns a list of all the debug command lines found in the project's assemblies.
|
staticget |
whether or not debug draws should be executed
|
staticget |
whether or not debug logs (MMDebug.DebugLogTime, MMDebug.DebugOnScreen) should be displayed
|
staticget |
Returns a string with all log history condensed.