mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-24 01:12:41 +08:00
Some UI cleanups, improving caching and reduce image allocation
This commit is contained in:
@ -106,7 +106,7 @@ namespace UnityExplorer.UI.Inspectors
|
||||
var closeBtn = UIFactory.CreateButton(tabGroupObj,
|
||||
"CloseButton",
|
||||
"X",
|
||||
parent.Destroy,
|
||||
() => { InspectorManager.DestroyInspector(parent); },
|
||||
new Color(0.2f, 0.2f, 0.2f, 1));
|
||||
|
||||
UIFactory.SetLayoutElement(closeBtn.gameObject, minWidth: 20, flexibleWidth: 0);
|
||||
|
Reference in New Issue
Block a user