Class Console
Static class for Console related operations.
Provides Write(byte*, int, byte), Write(ref Fixed
Inherited Members
Namespace: Unity.Logging
Assembly: Unity.Logging.dll
Syntax
public static class Console
Methods
BeginBatch()
Call this before writing a lot of data to the console. Disables flush behaviour on every end-of-line
Declaration
public static void BeginBatch()
EndBatch()
Call this after Begin
Declaration
public static void EndBatch()
Flush()
Flush internal buffer to the console
Declaration
public static void Flush()
Write(byte*, int, byte)
Unsafe method for writing data to the console
Declaration
public static void Write(byte* data, int length, byte newLine)
Parameters
Type | Name | Description |
---|---|---|
byte* | data | Pointer to the string |
int | length | Length of the string |
byte | newLine | if true - add a new line at the end |
Write(ref FixedString4096Bytes)
Writes FixedString to the console
Declaration
public static void Write(ref FixedString4096Bytes message)
Parameters
Type | Name | Description |
---|---|---|
Fixed |
message | String to write to the console |
Write(ref FixedString512Bytes)
Writes FixedString to the console
Declaration
public static void Write(ref FixedString512Bytes message)
Parameters
Type | Name | Description |
---|---|---|
Fixed |
message | String to write to the console |