optimizing network stuff
This commit is contained in:
@@ -21,7 +21,7 @@ namespace RebootKit.Editor.Background {
|
||||
EditorUtility.InstanceIDToObject(createEvent.instanceId) as GameObject;
|
||||
|
||||
if (gameObjectChanged != null && gameObjectChanged.TryGetComponent(out Actor actor)) {
|
||||
actor.ActorID = UniqueID.NewULongFromGuid();
|
||||
actor.ActorStaticID = UniqueID.NewULongFromGuid();
|
||||
EditorUtility.SetDirty(actor);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Build;
|
||||
using UnityEditor.Build.Reporting;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RebootKitEditor.Build {
|
||||
namespace RebootKit.Editor.Build {
|
||||
class BuildVersionBumper : IPostprocessBuildWithReport {
|
||||
public int callbackOrder => 0;
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.IO;
|
||||
using RebootKitEditor.Build;
|
||||
using RebootKit.Editor.Build;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RebootKitEditor {
|
||||
namespace RebootKit.Editor {
|
||||
static class CommonEditorActions {
|
||||
[MenuItem(REditorConsts.k_EditorMenu + "Bump minor version", false, 0)]
|
||||
static void BumpMinorVersion() {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using RebootKit.Engine.Foundation;
|
||||
using RebootKitEditor.Utils;
|
||||
using RebootKit.Editor.Utils;
|
||||
using RebootKit.Engine.Foundation;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RebootKitEditor.PropertyDrawers {
|
||||
namespace RebootKit.Editor.PropertyDrawers {
|
||||
[CustomPropertyDrawer(typeof(ConfigVar))]
|
||||
public class CVarDrawer : PropertyDrawer {
|
||||
bool m_Expand;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RebootKitEditor.PropertyDrawers {
|
||||
namespace RebootKit.Editor.PropertyDrawers {
|
||||
[CustomPropertyDrawer(typeof(ConstsProperty<>))]
|
||||
public class ConstsPropertyDrawer : PropertyDrawer {
|
||||
const string k_InlineValue = "m_InlineValue";
|
||||
|
||||
@@ -3,7 +3,7 @@ using RebootKit.Engine.Foundation;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RebootKitEditor.PropertyDrawers {
|
||||
namespace RebootKit.Editor.PropertyDrawers {
|
||||
[CustomPropertyDrawer(typeof(SerializableGuid))]
|
||||
public class SerializableGuidDrawer : PropertyDrawer {
|
||||
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RebootKitEditor.PropertyDrawers {
|
||||
namespace RebootKit.Editor.PropertyDrawers {
|
||||
[CustomPropertyDrawer(typeof(FloatRange))]
|
||||
public class ValueRangeDrawer : PropertyDrawer {
|
||||
const string k_minPropertyName = "min";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace RebootKitEditor {
|
||||
namespace RebootKit.Editor {
|
||||
static class REditorConsts {
|
||||
internal const string k_EditorMenu = "Reboot Reality/";
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using RebootKit.Engine.UI;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace RebootKitEditor.RebootWindow {
|
||||
namespace RebootKit.Editor.RebootWindow {
|
||||
public class ConfigVarsView : IView {
|
||||
public void Dispose() {
|
||||
}
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using RebootKit.Engine.Console;
|
||||
using RebootKit.Engine.Main;
|
||||
using RebootKit.Engine.UI;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace RebootKitEditor.RebootWindow {
|
||||
namespace RebootKit.Editor.RebootWindow {
|
||||
public class HomeView : IView {
|
||||
public void Dispose() {
|
||||
}
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
using RebootKit.Editor.RebootWindow;
|
||||
using RebootKit.Engine;
|
||||
using RebootKit.Engine.Foundation;
|
||||
using RebootKit.Engine;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
using Logger = RebootKit.Engine.Foundation.Logger;
|
||||
using TabView = RebootKit.Editor.RebootWindow.TabView;
|
||||
|
||||
namespace RebootKitEditor.RebootWindow {
|
||||
namespace RebootKit.Editor.RebootWindow {
|
||||
static class RTheme {
|
||||
public static readonly Color s_FirstColor = ColorFromHex("#B9B8B9");
|
||||
public static readonly Color s_SecondColor = ColorFromHex("#6B6B6B");
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using RebootKit.Engine.UI;
|
||||
using RebootKitEditor.RebootWindow;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Assertions;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
using RebootKit.Engine;
|
||||
using RebootKit.Editor.Utils;
|
||||
using RebootKit.Engine;
|
||||
using RebootKit.Engine.Simulation;
|
||||
using RebootKit.Engine.UI;
|
||||
using RebootKitEditor.Utils;
|
||||
using UnityEditor;
|
||||
using UnityEditor.SceneManagement;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace RebootKitEditor.RebootWindow {
|
||||
namespace RebootKit.Editor.RebootWindow {
|
||||
public class WorldsView : IView {
|
||||
public void Dispose() {
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -3,7 +3,7 @@ using UnityEditor.UIElements;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace SzafaKitEditor.VisualElements {
|
||||
namespace RebootKit.Editor.VisualElements {
|
||||
public class CVarPropertyField : VisualElement {
|
||||
readonly SerializedProperty _cvarProperty;
|
||||
readonly SerializedProperty _defaultValueKindProperty;
|
||||
|
||||
Reference in New Issue
Block a user