docs.unity3d.com
    Show / Hide Table of Contents

    Class Console

    Static class for Console related operations. Provides Write(Byte*, Int32, 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.

    Inheritance
    Object
    Console
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Logging
    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(Byte*, Int32, 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

    Int32 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
    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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023