Search Results for

    Show / Hide Table of Contents

    Class DebugEx

    Inheritance
    System.Object
    DebugEx
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: PLATEAU.Util
    Assembly: cs.temp.dll.dll
    Syntax
    public static class DebugEx

    Methods

    DrawArrow(Vector3, Vector3, Single, Nullable<Vector3>, Nullable<Color>, Nullable<Color>, Single, Boolean)

    start -> endの方向に矢印を描画する

    Declaration
    public static void DrawArrow(Vector3 start, Vector3 end, float arrowSize = 0.5F, Vector3? arrowUp = null, Color? bodyColor = null, Color? arrowColor = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Vector3 start
    Vector3 end
    System.Single arrowSize
    System.Nullable<Vector3> arrowUp
    System.Nullable<Color> bodyColor
    System.Nullable<Color> arrowColor

    矢印部分だけの色. nullの場合はcolorと同じ

    System.Single duration
    System.Boolean depthTest

    DrawArrows(IEnumerable<Vector3>, Boolean, Single, Nullable<Vector3>, Nullable<Color>, Nullable<Color>, Single, Boolean)

    verticesの要素を結ぶように矢印描画を行う

    Declaration
    public static void DrawArrows(IEnumerable<Vector3> vertices, bool isLoop = false, float arrowSize = 0.5F, Vector3? arrowUp = null, Color? color = null, Color? arrowColor = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    IEnumerable<Vector3> vertices
    System.Boolean isLoop

    要素の最後 -> 最初の頂点も矢印で結ぶ

    System.Single arrowSize
    System.Nullable<Vector3> arrowUp
    System.Nullable<Color> color
    System.Nullable<Color> arrowColor

    矢印部分だけの色. nullの場合はcolorと同じ

    System.Single duration
    System.Boolean depthTest

    DrawBorderParabola2D(GeoGraph2D.BorderParabola2D, Single, Single, Single, Boolean, Nullable<Color>, Single, Boolean)

    Declaration
    public static void DrawBorderParabola2D(GeoGraph2D.BorderParabola2D parabola, float beginX, float endX, float splitX = 0.1F, bool showXz = false, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    GeoGraph2D.BorderParabola2D parabola
    System.Single beginX
    System.Single endX
    System.Single splitX
    System.Boolean showXz
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawCenters(IEnumerable<Vector3>, Boolean, Single, Nullable<Vector3>, Nullable<Color>, Single, Boolean)

    Declaration
    public static void DrawCenters(IEnumerable<Vector3> vertices, bool isLoop = false, float arrowSize = 0.5F, Vector3? arrowUp = null, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    IEnumerable<Vector3> vertices
    System.Boolean isLoop
    System.Single arrowSize
    System.Nullable<Vector3> arrowUp
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawDashedArrow(Vector3, Vector3, Nullable<Color>, Single, Single, Single, Boolean, Single, Nullable<Vector3>, Nullable<Color>)

    デバッグで破線を描画する

    Declaration
    public static void DrawDashedArrow(Vector3 st, Vector3 en, Color? color = null, float lineLength = 1F, float spaceLength = 0.2F, float duration = 0F, bool depthTest = true, float arrowSize = 0.5F, Vector3? arrowUp = null, Color? arrowColor = null)
    Parameters
    Type Name Description
    Vector3 st
    Vector3 en
    System.Nullable<Color> color
    System.Single lineLength
    System.Single spaceLength
    System.Single duration
    System.Boolean depthTest
    System.Single arrowSize
    System.Nullable<Vector3> arrowUp
    System.Nullable<Color> arrowColor

    DrawDashedArrows(IEnumerable<Vector3>, Boolean, Nullable<Color>, Single, Single, Single, Boolean)

    デバッグで破線(矢印)を描画する

    Declaration
    public static void DrawDashedArrows(IEnumerable<Vector3> vertices, bool isLoop = false, Color? color = null, float lineLength = 3F, float spaceLength = 1F, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    IEnumerable<Vector3> vertices
    System.Boolean isLoop
    System.Nullable<Color> color
    System.Single lineLength
    System.Single spaceLength
    System.Single duration
    System.Boolean depthTest

    DrawDashedLine(Vector3, Vector3, Nullable<Color>, Single, Single, Single, Boolean)

    デバッグで破線を描画する

    Declaration
    public static void DrawDashedLine(Vector3 st, Vector3 en, Color? color = null, float lineLength = 1F, float spaceLength = 0.2F, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Vector3 st
    Vector3 en
    System.Nullable<Color> color
    System.Single lineLength
    System.Single spaceLength
    System.Single duration
    System.Boolean depthTest

    DrawDashedLines(IEnumerable<Vector3>, Boolean, Nullable<Color>, Single, Single, Single, Boolean)

    デバッグで破線を描画する

    Declaration
    public static void DrawDashedLines(IEnumerable<Vector3> vertices, bool isLoop = false, Color? color = null, float lineLength = 3F, float spaceLength = 1F, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    IEnumerable<Vector3> vertices
    System.Boolean isLoop
    System.Nullable<Color> color
    System.Single lineLength
    System.Single spaceLength
    System.Single duration
    System.Boolean depthTest

    DrawLine(Vector3, Vector3, Nullable<Color>, Single, Boolean)

    Debug.DrawLineのラッパー. デバッグ描画系をここに集約するため

    Declaration
    public static void DrawLine(Vector3 start, Vector3 end, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Vector3 start
    Vector3 end
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawLines(IEnumerable<Vector3>, Boolean, Nullable<Color>, Single, Boolean)

    Declaration
    public static void DrawLines(IEnumerable<Vector3> vertices, bool isLoop = false, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    IEnumerable<Vector3> vertices
    System.Boolean isLoop
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawLineSegment2D(LineSegment2D, Boolean, Nullable<Color>, Single, Boolean)

    線分のデバッグ描画

    Declaration
    public static void DrawLineSegment2D(LineSegment2D segment, bool showXz = false, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    LineSegment2D segment
    System.Boolean showXz
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawMesh(Mesh, Matrix4x4, Nullable<Color>, Single, Boolean)

    Declaration
    public static void DrawMesh(Mesh mesh, Matrix4x4 mat, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Mesh mesh
    Matrix4x4 mat
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawMesh(Mesh, Nullable<Color>, Single, Boolean)

    Declaration
    public static void DrawMesh(Mesh mesh, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Mesh mesh
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawParabola2D(Parabola2D, Single, Single, Single, Boolean, Nullable<Color>, Single, Boolean)

    放物線のデバッグ描画

    Declaration
    public static void DrawParabola2D(Parabola2D parabola, float beginX, float endX, float splitX = 0.1F, bool showXz = false, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Parabola2D parabola
    System.Single beginX
    System.Single endX
    System.Single splitX
    System.Boolean showXz
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawParabolaSegment2D(ParabolaSegment2D, Single, Nullable<Color>, Boolean, Single, Boolean)

    Declaration
    public static void DrawParabolaSegment2D(ParabolaSegment2D parabola, float deltaT = 0.1F, Color? color = null, bool showXz = false, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    ParabolaSegment2D parabola
    System.Single deltaT
    System.Nullable<Color> color
    System.Boolean showXz
    System.Single duration
    System.Boolean depthTest

    DrawPlateauMesh(Mesh, Matrix4x4, Nullable<Color>, Single, Boolean)

    Declaration
    public static void DrawPlateauMesh(Mesh mesh, Matrix4x4 mat, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Mesh mesh
    Matrix4x4 mat
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawPlateauPolygonMeshModel(Model, Nullable<Color>, Single, Boolean)

    Declaration
    public static void DrawPlateauPolygonMeshModel(Model model, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Model model
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawPlateauPolygonMeshNode(Matrix4x4, Node, Nullable<Color>, Single, Boolean)

    Declaration
    public static void DrawPlateauPolygonMeshNode(Matrix4x4 parentMatrix, Node node, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Matrix4x4 parentMatrix
    Node node
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawRay(Vector3, Vector3, Nullable<Color>, Single, Boolean)

    Draws a line from start to start + dir in world coordinates.

    Declaration
    public static void DrawRay(Vector3 start, Vector3 dir, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Vector3 start

    Point in world space where the ray should start.

    Vector3 dir

    Direction and length of the ray.

    System.Nullable<Color> color

    Color of the drawn line.

    System.Single duration

    How long the line will be visible for (in seconds).

    System.Boolean depthTest

    Determines whether objects closer to the camera obscure the line.

    DrawRegularPolygon(Vector3, Single, Int32, Nullable<Vector3>, Nullable<Color>, Single, Boolean)

    円を描画

    Declaration
    public static void DrawRegularPolygon(Vector3 pos, float radius, int polygon = 5, Vector3? up = null, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Vector3 pos
    System.Single radius
    System.Int32 polygon

    多角形のサイズ

    System.Nullable<Vector3> up
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawSphere(Vector3, Single, Nullable<Color>, Single, Boolean)

    球を描画する

    Declaration
    public static void DrawSphere(Vector3 pos, float radius, Color? color = null, float duration = 0F, bool depthTest = true)
    Parameters
    Type Name Description
    Vector3 pos
    System.Single radius
    System.Nullable<Color> color
    System.Single duration
    System.Boolean depthTest

    DrawString(String, Vector3, Nullable<Vector2>, Nullable<Color>, Nullable<Int32>)

    デバッグ文字列を3D空間上に表示する(Editor限定)

    Declaration
    public static void DrawString(string text, Vector3 worldPos, Vector2? screenOffset = null, Color? color = null, int? fontSize = null)
    Parameters
    Type Name Description
    System.String text
    Vector3 worldPos
    System.Nullable<Vector2> screenOffset
    System.Nullable<Color> color
    System.Nullable<System.Int32> fontSize

    GetDebugColor(Int32, Int32, Single)

    num段階に分けたうちi番目の色を返す

    Declaration
    public static Color GetDebugColor(int i, int num = 8, float a = 1F)
    Parameters
    Type Name Description
    System.Int32 i
    System.Int32 num
    System.Single a
    Returns
    Type Description
    Color

    Log(Object)

    Debug.Logのラッパー. 後で切れるように

    Declaration
    public static void Log(object message)
    Parameters
    Type Name Description
    System.Object message

    LogError(Object)

    Debug.LogErrorのラッパー. 後で切れるように

    Declaration
    public static void LogError(object message)
    Parameters
    Type Name Description
    System.Object message

    LogException(Exception)

    Debug.LogExceptionのラッパー. 後で切れるように

    Declaration
    public static void LogException(Exception e)
    Parameters
    Type Name Description
    Exception e

    LogWarning(Object)

    Debug.LogWarningのラッパー. 後で切れるように

    Declaration
    public static void LogWarning(object message)
    Parameters
    Type Name Description
    System.Object message
    In This Article
    Back to top PLATEAU SDK for Unity