docs.unity3d.com
Search Results for

    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(ref UnsafeText, ref FormatterStruct, ref LogMemoryManager, ref ArgumentInfo, int)
    Namespace: Unity.Logging
    Assembly: Unity.Logging.dll
    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.

    In This Article
    Back to top
    Copyright © 2025 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)