mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2026-10-10 04:03:13 +08:00
Add outline to resize arrow
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user