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