PO/Library/PackageCache/com.unity.test-framework@1..../UnityEditor.TestRunner/GUI/AssetsDatabaseHelper.cs

12 lines
351 B
C#
Raw Normal View History

2022-01-12 10:06:03 +03:00
namespace UnityEditor.TestTools.TestRunner.GUI
{
internal class AssetsDatabaseHelper : IAssetsDatabaseHelper
{
public void OpenAssetInItsDefaultExternalEditor(string assetPath, int line)
{
var asset = AssetDatabase.LoadMainAssetAtPath(assetPath);
AssetDatabase.OpenAsset(asset, line);
}
}
}