C# Class vvIO.vvConsole

Contains methods for console input/output.
Datei anzeigen Open project: jpwchang/VirtualVEX

Public Methods

Method Description
clear ( ) : void

Clears the console buffer

print ( float message ) : void

Prints a message to the VirtualVEX console. Useful for debugging purposes when making new robots (since the Unity print function is unavailable outside the Unity editor) or for implementing new console commands.

print ( int message ) : void

Prints a message to the VirtualVEX console. Useful for debugging purposes when making new robots (since the Unity print function is unavailable outside the Unity editor) or for implementing new console commands.

print ( string message ) : void

Prints a message to the VirtualVEX console. Useful for debugging purposes when making new robots (since the Unity print function is unavailable outside the Unity editor) or for implementing new console commands.

println ( ) : void

Prints a newline to the VirtualVEX console. Equivalent to calling print("\n")

println ( float message ) : void

Prints a message to the VirtualVEX console immediately followed by a newline. Equivalent to calling print(message) immediately followed by print("\n")

println ( int message ) : void

Prints a message to the VirtualVEX console immediately followed by a newline. Equivalent to calling print(message) immediately followed by print("\n")

println ( string message ) : void

Prints a message to the VirtualVEX console immediately followed by a newline. Equivalent to calling print(message) immediately followed by print("\n")

setConsoleParent ( Field f ) : void

Set the parent of the current scene's console (if it exists). Consoles are not objects due to Unity's method-based GUI system, and therefore the parent will not have a vvConsole member. Rather, a valid parent must implement a command table and GUI function for the console window. It must then call this method to attach its member output stream to the console.

Method Details

clear() public static method

Clears the console buffer
public static clear ( ) : void
return void

print() public static method

Prints a message to the VirtualVEX console. Useful for debugging purposes when making new robots (since the Unity print function is unavailable outside the Unity editor) or for implementing new console commands.
public static print ( float message ) : void
message float The message to be printed
return void

print() public static method

Prints a message to the VirtualVEX console. Useful for debugging purposes when making new robots (since the Unity print function is unavailable outside the Unity editor) or for implementing new console commands.
public static print ( int message ) : void
message int The message to be printed
return void

print() public static method

Prints a message to the VirtualVEX console. Useful for debugging purposes when making new robots (since the Unity print function is unavailable outside the Unity editor) or for implementing new console commands.
public static print ( string message ) : void
message string The message to be printed
return void

println() public static method

Prints a newline to the VirtualVEX console. Equivalent to calling print("\n")
public static println ( ) : void
return void

println() public static method

Prints a message to the VirtualVEX console immediately followed by a newline. Equivalent to calling print(message) immediately followed by print("\n")
public static println ( float message ) : void
message float The message to be printed
return void

println() public static method

Prints a message to the VirtualVEX console immediately followed by a newline. Equivalent to calling print(message) immediately followed by print("\n")
public static println ( int message ) : void
message int The message to be printed
return void

println() public static method

Prints a message to the VirtualVEX console immediately followed by a newline. Equivalent to calling print(message) immediately followed by print("\n")
public static println ( string message ) : void
message string The message to be printed
return void

setConsoleParent() public static method

Set the parent of the current scene's console (if it exists). Consoles are not objects due to Unity's method-based GUI system, and therefore the parent will not have a vvConsole member. Rather, a valid parent must implement a command table and GUI function for the console window. It must then call this method to attach its member output stream to the console.
public static setConsoleParent ( Field f ) : void
f Field The parent object
return void