Class Console
Static class for Console related operations. Provides Write(byte*, int, byte), Write(ref FixedString512Bytes) and Write(ref FixedString4096Bytes) for low-level writing to the Console. Use BeginBatch() and EndBatch() when you need to write a lot of data in a batch.
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 BeginBatch() Restores flush behaviour on every end-of-line
Declaration
public static void EndBatch()
Flush()
Flush internal buffer to the console
Declaration
public static void Flush()
Write(ref FixedString4096Bytes)
Writes FixedString to the console
Declaration
public static void Write(ref FixedString4096Bytes message)
Parameters
| Type | Name | Description |
|---|---|---|
| FixedString4096Bytes | 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 |
|---|---|---|
| FixedString512Bytes | message | String to write to the console |
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 |