Add outline to resize arrow

This commit is contained in:
Sinai committed 2022-03-21 01:04:55 +11:00
1 parent a6a1a4d046
commit 3213717ff6
1 file changed
+3
+3
View File
@@ -471,6 +471,9 @@ namespace UnityExplorer.UI.Panels
{
var text = UIFactory.CreateLabel(UIManager.UIRoot, "ResizeCursor", "↔", TextAnchor.MiddleCenter, Color.white, true, 35);
resizeCursorObj = text.gameObject;
var outline = text.gameObject.AddComponent<Outline>();
outline.effectColor = Color.black;
outline.effectDistance = new(1, 1);
RectTransform rect = resizeCursorObj.GetComponent<RectTransform>();
rect.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, 64);