{!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} Method SetOutputHandlerForTimestamp | Unity Logging | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetOutputHandlerForTimestamp

    SetOutputHandlerForTimestamp(OutputWriterTimestampHandler, bool)

    Sets a delegate to process and generate logging output strings for timestamps.

    Declaration
    public static void SetOutputHandlerForTimestamp(LogWriterUtils.OutputWriterTimestampHandler handler, bool isBurstable = false)
    Parameters
    Type Name Description
    LogWriterUtils.OutputWriterTimestampHandler handler

    LogWriterUtils.OutputWriterTimestampHandler delegate to output logging for timestamps.

    bool isBurstable

    True to Burst compile the handler and false if it's not Burst compatible.

    Remarks

    This method is invoked by source generated code and generally shouldn't be used directly.

    Since this method takes a delegate parameter, it's not Burst compatible itself. However, the method referenced by the delegate can be Burst compatible or not, depending on how it's implemented. If the handler method is Burst compatible, then pass true for isBurstable to Burst compile the handler, otherwise the handler always runs as managed code.

    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)