SquareDash/Library/PackageCache/com.unity.purchasing@4.10.0/Editor/ServiceProjectSettings/Presenter/SettingsUIUtils.cs
kingjuulian06 0efb85038a Arbeit 2
2023-11-21 22:03:49 +01:00

20 lines
463 B
C#

using System;
using UnityEngine.UIElements;
namespace UnityEditor.Purchasing
{
static class SettingsUIUtils
{
public static VisualElement CloneUIFromTemplate(string templatePath)
{
var template = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(templatePath);
if (template == null)
{
return null;
}
return template.CloneTree().contentContainer;
}
}
}