The Console class and console object facilitates control of the engine console from script. The console object is unique, no other objects of class Console exist.
Console Methods
write
- Overview:
- Writes a message to the console.
- Syntax:
- write( ... );
- Example: console.write (string)
- Parameters:
- Any number of values of any type.
- Returns:
- None.
- Notes:
- write converts each of its arguments to a string, then concatenates these strings together before sending the result to the console. No linebreaks are inserted if the length of the text exceeds the width of the screen, any excess text will be lost.
- writeConsole (string) is an equivalent function.
Console Properties
visible
- Overview:
- Gets or sets a value which determines whether the console is visible.
- Type:
- boolean
- Notes:
- The slide in/slide out animation will be triggered if the console changes state.
Console Global Objects
console
- Overview:
- Gets the JavaScript object encapsulating the console singleton.
- Read-only.
- Type:
- Console
Console Global Functions
writeConsole
- Overview:
- Write values to the console.
- Syntax:
- writeConsole("string", 1234);
- Parameters:
- any number of any type.
- Returns:
- Notes:
- Each argument is converted to a string and then written to the log.
Last modified
16 years ago
Last modified on Feb 23, 2008, 4:18:58 AM
Note:
See TracWiki
for help on using the wiki.