diff options
author | chai <chaifix@163.com> | 2021-07-12 20:07:05 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-07-12 20:07:05 +0800 |
commit | f7f2ebc0ce06aaf7d34325258c9bfe689043de94 (patch) | |
tree | b60f3d8dd248af3be00cf6f8f4ca16fa4a97bbaa /Assets/ActionTool/Editor/ActionEditorUI.cs | |
parent | 404297b51c1c71e6bb428aa199743b7fbf8db493 (diff) |
*action tool
Diffstat (limited to 'Assets/ActionTool/Editor/ActionEditorUI.cs')
-rw-r--r-- | Assets/ActionTool/Editor/ActionEditorUI.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Assets/ActionTool/Editor/ActionEditorUI.cs b/Assets/ActionTool/Editor/ActionEditorUI.cs index 91ff9cad..a1e2ba36 100644 --- a/Assets/ActionTool/Editor/ActionEditorUI.cs +++ b/Assets/ActionTool/Editor/ActionEditorUI.cs @@ -72,6 +72,14 @@ namespace ActionTool EditorGUI.DrawRect(rect, color);
}
+ public void DrawRectFrame(Rect rect, Color col)
+ {
+ DrawHorizontalLineFast(rect.y, rect.x, rect.x + rect.width, col);
+ DrawHorizontalLineFast(rect.y + rect.height, rect.x, rect.x + rect.width, col);
+ DrawVerticalLineFast(rect.x, rect.y, rect.y + rect.height, col);
+ DrawVerticalLineFast(rect.x + rect.width, rect.y, rect.y + rect.height, col);
+ }
+
public void SelectObject(Object obj)
{
Selection.activeObject = obj;
|