optimizing network stuff
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RebootKitEditor.Utils {
|
||||
namespace RebootKit.Editor.Utils {
|
||||
public static class AssetDatabaseEx {
|
||||
public static T[] LoadAllAssets<T>() where T : Object {
|
||||
string[] guids = AssetDatabase.FindAssets($"t:{typeof(T).Name}");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using UnityEditor;
|
||||
|
||||
namespace RebootKitEditor.Utils {
|
||||
namespace RebootKit.Editor.Utils {
|
||||
public struct CVarSerializedProperties {
|
||||
public SerializedProperty flags;
|
||||
public SerializedProperty name;
|
||||
|
||||
17
Editor/Utils/DomainReloader.cs
Normal file
17
Editor/Utils/DomainReloader.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RebootKit.Editor.Utils {
|
||||
public static class DomainReloader {
|
||||
[MenuItem(REditorConsts.k_EditorMenu + "Reload Domain", priority = 1000)]
|
||||
public static void ReloadDomain() {
|
||||
if (EditorApplication.isCompiling) {
|
||||
Debug.LogError("Cannot reload domain while compiling.");
|
||||
EditorUtility.DisplayDialog("Reload Domain", "Cannot reload domain while compiling.", "OK");
|
||||
return;
|
||||
}
|
||||
|
||||
EditorUtility.RequestScriptReload();
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Editor/Utils/DomainReloader.cs.meta
Normal file
3
Editor/Utils/DomainReloader.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 38260f05c1a7436cbe1813733e82ef56
|
||||
timeCreated: 1753762882
|
||||
Reference in New Issue
Block a user