Created unity project

This commit is contained in:
2024-12-07 20:55:50 +01:00
parent 539250d964
commit 54fe327198
13758 changed files with 865324 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using UnityEditor;
using UnityEngine;
namespace Unity.PlasticSCM.Editor.UI
{
internal static class DrawTextBlockWithEndLink
{
internal static void For(
ExternalLink externalLink,
string explanation,
GUIStyle textBlockStyle)
{
GUILayout.Label(explanation, textBlockStyle);
GUIStyle linkStyle = new GUIStyle(UnityStyles.LinkLabel);
linkStyle.fontSize = textBlockStyle.fontSize;
linkStyle.stretchWidth = false;
if (GUILayout.Button(externalLink.Label, linkStyle))
Application.OpenURL(externalLink.Url);
EditorGUIUtility.AddCursorRect(
GUILayoutUtility.GetLastRect(), MouseCursor.Link);
}
}
}