first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using SingularityGroup.HotReload.Demo;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SingularityGroup.HotReload.Editor.Demo {
|
||||
class EditorDemo : IDemo {
|
||||
public bool IsServerRunning() {
|
||||
return ServerHealthCheck.I.IsServerHealthy;
|
||||
}
|
||||
|
||||
public void OpenHotReloadWindow() {
|
||||
HotReloadWindow.Open();
|
||||
}
|
||||
|
||||
public void OpenScriptFile(TextAsset textAsset, int line, int column) {
|
||||
var path = Path.GetFullPath(AssetDatabase.GetAssetPath(textAsset));
|
||||
#if UNITY_2019_4_OR_NEWER
|
||||
Unity.CodeEditor.CodeEditor.CurrentEditor.OpenProject(path, line, column);
|
||||
#else
|
||||
EditorUtility.OpenWithDefaultApp(path);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fde6b5b57a3aeba4888a7bdaa16b3074
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user