Skip to content

Commit e5631e3

Browse files
committed
perf: Replaced System.Guid with UnityEngine.GUID
This offers a slight speed improvement and also less memory allocation
1 parent cf7ca6e commit e5631e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/TypeDropdown/SelectionTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal partial class SelectionTree
1919
private readonly List<SelectionNode> _searchModeTree = new List<SelectionNode>();
2020
private readonly SelectionNode _root;
2121
private readonly NoneElement _noneElement;
22-
private readonly string _searchFieldControlName = Guid.NewGuid().ToString();
22+
private readonly string _searchFieldControlName = GUID.Generate().ToString();
2323
private readonly Action<Type> _onTypeSelected;
2424
private readonly Scrollbar _scrollbar = new Scrollbar();
2525
private readonly bool _drawSearchbar;

0 commit comments

Comments
 (0)