study/first_study/Library/PackageCache/com.unity.collab-proxy@1ec4e416a4af/Editor/UI/DrawSearchField.cs
jh04010421 739d49f1a0 Unity | 2026.01.20
수업 실습 파일
2026-01-20 11:01:57 +09:00

20 lines
521 B
C#

using UnityEditor.IMGUI.Controls;
using UnityEngine;
#if UNITY_6000_2_OR_NEWER
using TreeView = UnityEditor.IMGUI.Controls.TreeView<int>;
#endif
namespace Unity.PlasticSCM.Editor.UI
{
internal static class DrawSearchField
{
internal static void For(
SearchField searchField,
TreeView treeView,
float width)
{
treeView.searchString = searchField.OnToolbarGUI(
treeView.searchString, GUILayout.MaxWidth(width / 2f));
}
}
}