playtest-unity/playtest/Library/PackageCache/com.unity.testtools.codecov.../Editor/Icons/EditorIcons.cs

18 lines
573 B
C#
Raw Normal View History

2023-06-19 23:21:21 -04:00
using UnityEngine;
namespace UnityEditor.TestTools.CodeCoverage
{
internal static class EditorIcons
{
public static Texture2D FolderOpened { get; private set; }
public static Texture2D CoverageWindow { get; private set; }
static EditorIcons()
{
FolderOpened = GetTexture("FolderOpened.png");
CoverageWindow = GetTexture("CodeCoverage.png");
}
static Texture2D GetTexture(string path) => EditorGUIUtility.FindTexture("Packages/com.unity.testtools.codecoverage/Editor/Icons/" + path);
}
}