mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-18 10:04:38 +08:00
17 lines
719 B
C#
17 lines
719 B
C#
using System.Runtime.CompilerServices;
|
|
using UnityEngine;
|
|
|
|
namespace DCFApixels {
|
|
using IN = MethodImplAttribute;
|
|
using DrawHandler = DebugX.DrawHandler;
|
|
|
|
public static class TextDrawHandlerExtensions {
|
|
private const MethodImplOptions LINE = DebugX.LINE;
|
|
|
|
[IN(LINE)] public static DrawHandler Text(this DrawHandler drawHandler, Vector3 position, object text) =>
|
|
drawHandler.Gizmo(new TextGizmo(position, text, DebugXTextSettings.Default));
|
|
|
|
[IN(LINE)] public static DrawHandler Text(this DrawHandler drawHandler, Vector3 position, object text, DebugXTextSettings settings) =>
|
|
drawHandler.Gizmo(new TextGizmo(position, text, settings));
|
|
}
|
|
} |