docs.unity.cn
    Show / Hide Table of Contents

    Class XRLoggingUtils

    Utility methods for logging.

    Inheritance
    Object
    XRLoggingUtils
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils
    Syntax
    public static class XRLoggingUtils
    Remarks

    These methods mirror the standard Debug log methods, but do not log anything if tests are being run via command line (using -runTests).

    See Running tests from the command line for information about running tests.

    Methods

    Log(String, Object)

    Same as Log, but does not print anything if tests are being run.

    Declaration
    public static void Log(string message, Object context = null)
    Parameters
    Type Name Description
    String message

    Log message for display.

    Object context

    Object to which the message applies.