* 将组件加入到菜单中。

* 添加一个任意形状编辑器
This commit is contained in:
2026-04-07 17:48:48 +08:00
parent 76b891dc26
commit 22ae0d9293
14 changed files with 1203 additions and 55 deletions
+3 -1
View File
@@ -3,15 +3,17 @@ using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.UI;
namespace XericLibrary
namespace XericLibrary.Runtime.Renderer
{
/// <summary>
/// UI上线条绘制组件
/// 支持设置线条厚度、居中显示,并为线段之间添加斜角边缘
/// 继承自 MaskableGraphic,可与 UI 遮罩系统配合使用
/// </summary>
[AddComponentMenu("Xeric Library/UI/UILineRenderer", 15)]
public class UILineRenderer : XericRendererComponent
{
// todo 根据优弧劣弧绘制线段,这么说可能不太准确,但我需要在90度以内绘制漂亮的转角,大于90度则用中心圆代替
#region 字段属性
/// <summary>