From f7f2ebc0ce06aaf7d34325258c9bfe689043de94 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 12 Jul 2021 20:07:05 +0800 Subject: *action tool --- Assets/ActionTool/Editor/ActionEditorUI.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Assets/ActionTool/Editor/ActionEditorUI.cs') 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; -- cgit v1.1-26-g67d0