mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0
  • 指南
  • API 文档
  • API 文档

    Show / Hide Table of Contents

    Class DebugUtilities

    Inheritance
    Object
    DebugUtilities
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public static class DebugUtilities

    Methods

    DebugAssert(Boolean)

    Asserts a condition.

    Declaration
    public static void DebugAssert(bool condition)
    Parameters
    Type Name Description
    Boolean condition

    The condition that is expected to be true.

    DebugAssert(Boolean)

    Asserts a condition.

    Declaration
    public static void DebugAssert(bool condition)
    Parameters
    Type Name Description
    Boolean condition

    The condition that is expected to be true.

    DebugAssert(Boolean, String)

    Asserts a condition.

    Declaration
    public static void DebugAssert(bool condition, string message)
    Parameters
    Type Name Description
    Boolean condition

    The condition that is expected to be true.

    String message

    The message to display if the condition evaluates to false.

    DebugAssert(Boolean, String)

    Asserts a condition.

    Declaration
    public static void DebugAssert(bool condition, string message)
    Parameters
    Type Name Description
    Boolean condition

    The condition that is expected to be true.

    String message

    The message to display if the condition evaluates to false.

    DebugLog(String)

    Logs a message.

    Declaration
    public static void DebugLog(string message)
    Parameters
    Type Name Description
    String message

    The message to log.

    DebugLog(String)

    Logs a message.

    Declaration
    public static void DebugLog(string message)
    Parameters
    Type Name Description
    String message

    The message to log.

    DebugLogError(String)

    Logs an error message.

    Declaration
    public static void DebugLogError(string message)
    Parameters
    Type Name Description
    String message

    The message to log.

    DebugLogError(String)

    Logs an error message.

    Declaration
    public static void DebugLogError(string message)
    Parameters
    Type Name Description
    String message

    The message to log.

    DebugLogWarning(String)

    Logs a warning message.

    Declaration
    public static void DebugLogWarning(string message)
    Parameters
    Type Name Description
    String message

    The message to log.

    DebugLogWarning(String)

    Logs a warning message.

    Declaration
    public static void DebugLogWarning(string message)
    Parameters
    Type Name Description
    String message

    The message to log.

    DrawBounds(Bounds, Color, Color)

    Draws the minimum and maximum points of the given bounds

    Declaration
    public static void DrawBounds(Bounds bounds, Color minColor, Color maxColor)
    Parameters
    Type Name Description
    Bounds bounds
    Color minColor
    Color maxColor

    DrawBounds(Bounds, Color, Color)

    Draws the minimum and maximum points of the given bounds

    Declaration
    public static void DrawBounds(Bounds bounds, Color minColor, Color maxColor)
    Parameters
    Type Name Description
    Bounds bounds
    Color minColor
    Color maxColor

    DrawPoint(Vector3, Color, Single)

    Draws a point in the Scene window.

    Declaration
    public static void DrawPoint(Vector3 point, Color color, float size = 0.05F)
    Parameters
    Type Name Description
    Vector3 point
    Color color
    Single size

    DrawPoint(Vector3, Color, Single)

    Draws a point in the Scene window.

    Declaration
    public static void DrawPoint(Vector3 point, Color color, float size = 0.05F)
    Parameters
    Type Name Description
    Vector3 point
    Color color
    Single size

    DrawPoint(Vector3, Quaternion, Color, Single)

    Draws a point with a rotation in the Scene window.

    Declaration
    public static void DrawPoint(Vector3 point, Quaternion rotation, Color color, float size = 0.05F)
    Parameters
    Type Name Description
    Vector3 point
    Quaternion rotation
    Color color
    Single size

    DrawPoint(Vector3, Quaternion, Color, Single)

    Draws a point with a rotation in the Scene window.

    Declaration
    public static void DrawPoint(Vector3 point, Quaternion rotation, Color color, float size = 0.05F)
    Parameters
    Type Name Description
    Vector3 point
    Quaternion rotation
    Color color
    Single size
    In This Article
    • Methods
      • DebugAssert(Boolean)
      • DebugAssert(Boolean)
      • DebugAssert(Boolean, String)
      • DebugAssert(Boolean, String)
      • DebugLog(String)
      • DebugLog(String)
      • DebugLogError(String)
      • DebugLogError(String)
      • DebugLogWarning(String)
      • DebugLogWarning(String)
      • DrawBounds(Bounds, Color, Color)
      • DrawBounds(Bounds, Color, Color)
      • DrawPoint(Vector3, Color, Single)
      • DrawPoint(Vector3, Color, Single)
      • DrawPoint(Vector3, Quaternion, Color, Single)
      • DrawPoint(Vector3, Quaternion, Color, Single)
    Back to top Generated by DocFX