Firstborn/Library/PackageCache/com.unity.ads@4.4.2/Editor/DevX/Settings/GettingStartedUi.cs
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

32 lines
951 B
C#

#if SERVICES_SDK_CORE_ENABLED
using UnityEngine.UIElements;
namespace UnityEngine.Advertisements.Editor
{
class GettingStartedUi : VisualElement
{
public GettingStartedUi()
{
var container = UiUtils.GetUiFromTemplate(UiConstants.UiTemplatePaths.GettingStarted);
if (container is null)
{
var message = string.Format(
UiConstants.Formats.TemplateNotFound, nameof(UiConstants.UiTemplatePaths.GettingStarted));
Debug.LogError(message);
return;
}
Add(container);
container.AddOnClickedForElement(OnLearnMoreClicked, UiConstants.UiElementNames.LearnMoreLink);
}
static void OnLearnMoreClicked()
{
EditorGameServiceAnalyticsSender.SendProjectSettingsLearnMoreEvent();
Application.OpenURL(UiConstants.Urls.LearnMore);
}
}
}
#endif