{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class Console | Unity Logging | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    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
    Assembly: solution.dll
    Syntax
    public static class Console

    Methods

    Name Description
    BeginBatch()

    Call this before writing a lot of data to the console. Disables flush behaviour on every end-of-line

    EndBatch()

    Call this after BeginBatch() Restores flush behaviour on every end-of-line

    Flush()

    Flush internal buffer to the console

    Write(byte*, int, byte)

    Unsafe method for writing data to the console

    Write(ref FixedString4096Bytes)

    Writes FixedString to the console

    Write(ref FixedString512Bytes)

    Writes FixedString to the console

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)