Rasagar/Library/PackageCache/com.unity.test-framework/UnityEditor.TestRunner/GUI/AssetsDatabaseHelper.cs

14 lines
366 B
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
using System;
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);
}
}
}