MW UNITY NAMESPACE







































Arrow


Debugger utility for drawing Gizmo and Debug Arrows.



public static void

GizmoArrow (Vector3 Position, Vector3 Direction, float ArrowHeadLength, float ArrowHeadAngle)

Summary:

Draws an Arrow as a Gizmo.

Params:

Position:

        The origin of the Arrow.

Direction:

        The direction of the Arrow.

ArrowHeadLength:

        The length of the Arrow head.

ArrowHeadAngle:

        The angle of the Arrow head.



public static void

GizmoArrow (Vector3 Position, Vector3 Direction, Color Colour, float ArrowHeadLength, float ArrowHeadAngle)

Summary:

Draws an Arrow as a Gizmo.

Params:

Position:

        The origin of the Arrow.

Direction:

        The direction of the Arrow.

Colour:

        The colour of the Arrow.

ArrowHeadLength:

        The length of the Arrow head.

ArrowHeadAngle:

        The angle of the Arrow head.



public static void

DebugArrow (Vector3 Position, Vector3 Direction, float ArrowHeadLength, float ArrowHeadAngle, float Duration)

Summary:

Draws an Arrow as Debug.

Params:

Position:

        The origin of the Arrow.

Direction:

        The direction of the Arrow.

ArrowHeadLength:

        The length of the Arrow head.

ArrowHeadAngle:

        The angle of the Arrow head.

Duration:

        The Duration in seconds in which to show this arrow.



public static void

DebugArrow (Vector3 Position, Vector3 Direction, Color Colour, float ArrowHeadLength, float ArrowHeadAngle, float Duration)

Summary:

Draws an Arrow as Debug.

Params:

Position:

        The origin of the Arrow.

Direction:

        The direction of the Arrow.

Colour:

        The colour of the Arrow.

ArrowHeadLength:

        The length of the Arrow head.

ArrowHeadAngle:

        The angle of the Arrow head.

Duration:

        The Duration in seconds in which to show this arrow.



public static void

GizmoArrow (MVector Position, MVector Direction, float ArrowHeadLength, float ArrowHeadAngle)

Summary:

Draws an Arrow as a Gizmo.

Params:

Position:

        The origin of the Arrow.

Direction:

        The direction of the Arrow.

ArrowHeadLength:

        The length of the Arrow head.

ArrowHeadAngle:

        The angle of the Arrow head.



public static void

GizmoArrow (MVector Position, MVector Direction, Color Colour, float ArrowHeadLength, float ArrowHeadAngle)

Summary:

Draws an Arrow as a Gizmo.

Params:

Position:

        The origin of the Arrow.

Direction:

        The direction of the Arrow.

Colour:

        The colour of the Arrow.

ArrowHeadLength:

        The length of the Arrow head.

ArrowHeadAngle:

        The angle of the Arrow head.



public static void

DebugArrow (MVector Position, MVector Direction, float ArrowHeadLength, float ArrowHeadAngle, float Duration)

Summary:

Draws an Arrow as Debug.

Params:

Position:

        The origin of the Arrow.

Direction:

        The direction of the Arrow.

ArrowHeadLength:

        The length of the Arrow head.

ArrowHeadAngle:

        The angle of the Arrow head.

Duration:

        The Duration in seconds in which to show this arrow.



public static void

DebugArrow (MVector Position, MVector Direction, Color Colour, float ArrowHeadLength, float ArrowHeadAngle, float Duration)

Summary:

Draws an Arrow as Debug.

Params:

Position:

        The origin of the Arrow.

Direction:

        The direction of the Arrow.

Colour:

        The colour of the Arrow.

ArrowHeadLength:

        The length of the Arrow head.

ArrowHeadAngle:

        The angle of the Arrow head.

Duration:

        The Duration in seconds in which to show this arrow.


public enum

EVerbosity


Debug.LogEVerbosity().


Log


Warning


Error


public class

Log


Write to the console.



public static void

P (Object[] Args)

Summary:

Prints every object with object.ToString() to the console as output.

Params:

Args:

        The list of objects to log separated by a space.



public static void

E (Object[] Args)

Summary:

Prints every object with object.ToString() to the console as output.

Params:

Args:

        The list of objects to log separated by a space.



public static void

W (Object[] Args)

Summary:

Prints every object with object.ToString() to the console as output.

Params:

Args:

        The list of objects to log separated by a space.



public static void

Auto (string Content, EVerbosity Verbosity)

Summary:

Prints Content to the Console with Verbosity.

Params:

Content:

        The string to print to the console.

Verbosity:

        The verbosity to print Content with.



public static void

Colourise (string Content, MVector Colour, EVerbosity Verbosity)

Summary:

Prints Content to the Console with Colour and Verbosity.

Params:

Content:

        The string to colour and print to the console.

Colour:

        The colour to display Content in RGB.

Verbosity:

        The verbosity to print Content with.


public static class

Stacktrace


Provides a stacktrace for code.



public static string

Here ()

Summary:

Gets the current stack trace information.

Returns:

StacktraceInfo struct.



public static void

Here (EVerbosity Verbosity)

Summary:

Stacktrace using Log.P with EVerbosity verbosity.

Params:

Verbosity:

        The EVerbosity verbosity of the Log.P.



public static void

Here (string Message, EVerbosity Verbosity)

Summary:

Stacktrace using Log.P with EVerbosity verbosity and a string message.

Params:

Message:

        The string message to show.

Verbosity:

        The EVerbosity of the Log.P.


public struct

StacktraceInfo


Information regarding a Stacktrace.



public string

Stacktrace

The string value of the stacktrace.



public Type

Class

The Type of the calling Class.



public MethodInfo

Function

The Method or Function that called this Stacktrace.



public static implicit operator string

StacktraceInfo -> String ()

Summary:

Implicit string conversion to the string value of the stacktrace.


public class

Stopwatch


Track execution time of code.


CONSTRUCTOR (bool bStartOnCreation)

Summary:

Creates a new Stopwatch.

Params:

bStartOnCreation:

        Immediately starting timing upon instantiating?



public void

Start ()

Summary:

Start Stopwatch.



public long

Stop ()

Summary:

Stop Stopwatch and get the elapsed Time.

Returns:

The elapsed time before stopping.



public long

Restart ()

Summary:

Restarts Stopwatch and get the Time before restarting.

Returns:

The elapsed time before restarting.



public long

Time ()

Summary:

Get the current elapsed time.



public long

TimeInSeconds ()

Summary:

Get the current elapsed time in seconds.



public static long

ToSeconds (long Milliseconds)

Summary:

Converts milliseconds to seconds.

Params:

Milliseconds:

        Milliseconds to convert.