您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
726 B

#if ENABLE_EDITOR_GAME_SERVICES
using System;
using UnityEditor;
using UnityEngine.UIElements;
namespace Unity.Services.Core.Editor
{
static class UserRoleRequestUiHelper
{
const string k_UxmlPath = "Packages/com.unity.services.core/Editor/Core/UiHelpers/UXML/PleaseWait.uxml";
public static void AddUserRoleRequestUI(VisualElement userRoleRequestContainer)
{
if (userRoleRequestContainer == null)
return;
var visualTreeAsset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(k_UxmlPath);
if (visualTreeAsset != null)
{
visualTreeAsset.CloneTree(userRoleRequestContainer);
}
}
}
}
#endif