Skip to content

Commit 1a00a3c

Browse files
committed
fix: HyberLink uss unity 2018 support
1 parent 88fa847 commit 1a00a3c

20 files changed

+31
-34
lines changed

Editor/Core/FoundationPackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static class FoundationPackage
1818
public static readonly string RootPath = PackageManagerUtility.GetPackageRootPath(Name);
1919

2020

21-
#if UNITY_2019_1_OR_NEWER
21+
#if UNITY_2019_4_OR_NEWER
2222
/// <summary>
2323
/// Foundation package info.
2424
/// </summary>

Editor/EditorUtilities/PackageManagerUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static class PackageManagerUtility
1818
/// </summary>
1919
public const string ManifestPath = "Packages/manifest.json";
2020

21-
#if UNITY_2019_1_OR_NEWER
21+
#if UNITY_2019_4_OR_NEWER
2222
/// <summary>
2323
/// Returns PackageInfo if package is installed in the project, <c>null</c> otherwise.
2424
/// </summary>

Editor/EditorUtilities/UIToolkitEditorUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_2019_1_OR_NEWER
1+
#if UNITY_2019_4_OR_NEWER
22
using System;
33
using UnityEditor;
44
using UnityEngine;

Editor/UIToolkit/Controls/ButtonStrip/ButtonStrip.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_2019_1_OR_NEWER
1+
#if UNITY_2019_4_OR_NEWER
22
using System;
33
using System.Collections.Generic;
44
using System.Linq;

Editor/UIToolkit/Controls/HelpBox/HelpBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_2019_1_OR_NEWER
1+
#if UNITY_2019_4_OR_NEWER
22
using JetBrains.Annotations;
33
using UnityEditor;
44
using UnityEngine.UIElements;

Editor/UIToolkit/Controls/Hyperlink/Hyperlink.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using JetBrains.Annotations;
1+
#if UNITY_2019_4_OR_NEWER
2+
using JetBrains.Annotations;
23
using StansAssets.Foundation.Editor;
34
using UnityEngine;
45
using UnityEngine.UIElements;
@@ -60,4 +61,5 @@ public Hyperlink()
6061
UIToolkitEditorUtility.ApplyStyleForInternalControl(this, nameof(Hyperlink));
6162
}
6263
}
63-
}
64+
}
65+
#endif

Editor/UIToolkit/Controls/Hyperlink/Hyperlink.uss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.stansassets-settings-block__header {
99
margin-top: 5px;
1010
margin-bottom: 5px;
11-
font-size: 13;
11+
font-size: 13px;
1212
-unity-font-style: bold;
1313
}
1414

Editor/UIToolkit/Controls/Hyperlink/Hyperlink.uss.meta

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/UIToolkit/Controls/Hyperlink/HyperlinkDark.uss.meta

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/UIToolkit/Controls/Hyperlink/HyperlinkLight.uss.meta

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)