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

    Show / Hide Table of Contents

    Method WriteProperty

    WriteProperty<T>(ref UnsafeText, string, in T, ref ArgumentInfo)

    Writes UTF8 string as a property

    Declaration
    bool WriteProperty<T>(ref UnsafeText output, string fieldName, in T fs, ref ArgumentInfo currArgSlot) where T : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    T fs

    UTF8 string to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    Type Parameters
    Name Description
    T

    Unmanaged UTF8 string

    WriteProperty(ref UnsafeText, string, PayloadHandle, ref LogMemoryManager, ref ArgumentInfo)

    Writes UTF8 string in PayloadHandle as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, PayloadHandle payload, ref LogMemoryManager memAllocator, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    PayloadHandle payload

    PayloadHandle that contains UTF8 string to write

    LogMemoryManager memAllocator

    Memory allocator that owns the payload handle

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, char, ref ArgumentInfo)

    Writes char as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, char c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    char c

    Char to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, bool, ref ArgumentInfo)

    Writes bool as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, bool b, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    bool b

    Bool to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, sbyte, ref ArgumentInfo)

    Writes sbyte as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, sbyte c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    sbyte c

    SByte to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, byte, ref ArgumentInfo)

    Writes byte as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, byte c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    byte c

    Byte to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, short, ref ArgumentInfo)

    Writes short as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, short c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    short c

    Short to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, ushort, ref ArgumentInfo)

    Writes ushort as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, ushort c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    ushort c

    UShort to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, int, ref ArgumentInfo)

    Writes int as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, int c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    int c

    Int to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, uint, ref ArgumentInfo)

    Writes uint as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, uint c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    uint c

    UInt to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, long, ref ArgumentInfo)

    Writes long as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, long c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    long c

    Long to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, ulong, ref ArgumentInfo)

    Writes ulong as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, ulong c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    ulong c

    ULong to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, IntPtr, ref ArgumentInfo)

    Writes IntPtr as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, IntPtr p, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    IntPtr p

    IntPtr to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, UIntPtr, ref ArgumentInfo)

    Writes UIntPtr as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, UIntPtr p, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    UIntPtr p

    UIntPtr to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, float, ref ArgumentInfo)

    Writes float as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, float c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    float c

    Primitive to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, double, ref ArgumentInfo)

    Writes double as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, double c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    double c

    Double to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    WriteProperty(ref UnsafeText, string, decimal, ref ArgumentInfo)

    Writes decimal as a property

    Declaration
    bool WriteProperty(ref UnsafeText output, string fieldName, decimal c, ref ArgumentInfo currArgSlot)
    Parameters
    Type Name Description
    UnsafeText output

    UnsafeText where to append the text representation

    string fieldName

    Name of the field that can be used by formatter

    decimal c

    Decimal to write

    ArgumentInfo currArgSlot

    Hole that was used to describe the struct in the log message, for instance {0} or {Number} or {Number:##.0;-##.0}

    Returns
    Type Description
    bool

    True if successful

    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)