9092858a58
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!
32 lines
951 B
C#
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
|