Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SettingsUIUtils.cs 463B

12345678910111213141516171819
  1. using System;
  2. using UnityEngine.UIElements;
  3. namespace UnityEditor.Purchasing
  4. {
  5. static class SettingsUIUtils
  6. {
  7. public static VisualElement CloneUIFromTemplate(string templatePath)
  8. {
  9. var template = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(templatePath);
  10. if (template == null)
  11. {
  12. return null;
  13. }
  14. return template.CloneTree().contentContainer;
  15. }
  16. }
  17. }