MW UNITY NAMESPACE








































public static class

Line


Drawing LineRenderers in the game.



public static void

DrawLine (LineRenderer LineRenderer, Vector3 From, Vector3 To, Color StartColour, Color EndColour, float LineWidth, Vector3 Offset, Material Material, bool bUseWorldSpace)

Summary:

Draws a line from to To in StartColor to EndColor at LineWidth thickness with an Offset in bUseWorldSpace.

Params:

LineRenderer:

        The LineRenderer of the GameObject calling this.

From:

        The coordinates where the line will originate.

To:

        The coordinates where the line will end.

StartColour:

        The starting colour gradient for this line.

EndColour:

        The ending colour gradient for this line.

LineWidth:

        The thickness of this line.

Offset:

        The offset to place this line.

Material:

        The material used to draw the line.

bUseWorldSpace:

        Should this line use world space?



public static void

DrawLine (GameObject Self, Vector3 From, Vector3 To, Color StartColour, Color EndColour, float LineWidth, Vector3 Offset, bool bUseWorldSpace)

Summary:

Draws a line from to To in StartColor to EndColor at LineWidth thickness with an Offset in bUseWorldSpace.

Params:

Self:

        The GameObject calling this.

From:

        The coordinates where the line will originate.

To:

        The coordinates where the line will end.

StartColour:

        The starting colour gradient for this line.

EndColour:

        The ending colour gradient for this line.

LineWidth:

        The thickness of this line.

Offset:

        The offset to place this line.

bUseWorldSpace:

        Should this line use world space?



public static void

DrawCircle (LineRenderer LineRenderer, Vector3 Around, float Radius, Color LineColour, float LineWidth, Material Material, bool bUseWorldSpace, int NumberOfSegments)

Summary:

Draws a circle with a centre at Around at Radius with a LineColour at LineWidth thickness in bUseWorldSpace with NumberOfSegments.

Params:

LineRenderer:

        The LineRenderer of the GameObject calling this.

Around:

        The centre of the circle to be drawn.

Radius:

        The radius of this circle.

LineColour:

        The colour of this circle.

LineWidth:

        The thickness of this circle.

Material:

        The material used to draw the circle.

bUseWorldSpace:

        Should this circle use world space?

NumberOfSegments:

        The number of vertices of this circle.



public static void

DrawCircle (GameObject Self, Vector3 Around, float Radius, Color LineColour, float LineWidth, bool bUseWorldSpace, int NumberOfSegments)

Summary:

Draws a circle with a centre at Around at Radius with a LineColour at LineWidth thickness in bUseWorldSpace with NumberOfSegments.

Params:

Self:

        The GameObject calling this.

Around:

        The centre of the circle to be drawn.

Radius:

        The radius of this circle.

LineColour:

        The colour of this circle.

LineWidth:

        The thickness of this circle.

bUseWorldSpace:

        Should this circle use world space?

NumberOfSegments:

        The number of vertices of this circle.