docs.unity.cn
    Show / Hide Table of Contents

    Interface ILoggableMirrorStruct<T>

    Interface that is used by Unity.Logging to understand how to convert a mirror structure into UnsafeText. Low-level way to describe 'ToString'-like behavior for any type for Unity.Logging to use.

    Inherited Members
    ILoggableMirrorStruct.AppendToUnsafeText(UnsafeText, FormatterStruct, LogMemoryManager, ArgumentInfo, Int32)
    Namespace: Unity.Logging
    Syntax
    public interface ILoggableMirrorStruct<T> : ILoggableMirrorStruct
    Type Parameters
    Name Description
    T

    The original type that this mirror structure is for

    Remarks

    This interface must be on a partial structure - then it means this partial structure is a mirror structure of type T.

    There are several requirements:

    - Multiple implementations of different ILoggableMirrorStruct on the same struct are not allowed.

    - First field of the structure must be MirrorStructHeader

    - Structure must have an implicit operator that converts from T.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, May 31, 2023