From 4d8d0df168fdddac9342ba0163d182a81143edf0 Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Fri, 29 Mar 2024 01:31:52 -0400 Subject: [PATCH] chore: Added LagCompensatorInspector (#3796) --- Assets/Mirror/Editor/LagCompensatorInspector.cs | 14 ++++++++++++++ .../Mirror/Editor/LagCompensatorInspector.cs.meta | 11 +++++++++++ Assets/Mirror/Editor/Mirror.Editor.asmdef | 1 + 3 files changed, 26 insertions(+) create mode 100644 Assets/Mirror/Editor/LagCompensatorInspector.cs create mode 100644 Assets/Mirror/Editor/LagCompensatorInspector.cs.meta diff --git a/Assets/Mirror/Editor/LagCompensatorInspector.cs b/Assets/Mirror/Editor/LagCompensatorInspector.cs new file mode 100644 index 000000000..f706384a8 --- /dev/null +++ b/Assets/Mirror/Editor/LagCompensatorInspector.cs @@ -0,0 +1,14 @@ +using UnityEditor; + +namespace Mirror +{ + [CustomEditor(typeof(LagCompensator))] + public class LagCompensatorInspector : Editor + { + public override void OnInspectorGUI() + { + EditorGUILayout.HelpBox("Preview Component - Feedback appreciated on GitHub or Discord!", MessageType.Warning); + DrawDefaultInspector(); + } + } +} diff --git a/Assets/Mirror/Editor/LagCompensatorInspector.cs.meta b/Assets/Mirror/Editor/LagCompensatorInspector.cs.meta new file mode 100644 index 000000000..0f3e8f7f1 --- /dev/null +++ b/Assets/Mirror/Editor/LagCompensatorInspector.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 703e39b5385ae2e479987ff4ec0707a1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Editor/Mirror.Editor.asmdef b/Assets/Mirror/Editor/Mirror.Editor.asmdef index 651b8fe02..800e67b04 100644 --- a/Assets/Mirror/Editor/Mirror.Editor.asmdef +++ b/Assets/Mirror/Editor/Mirror.Editor.asmdef @@ -3,6 +3,7 @@ "rootNamespace": "", "references": [ "GUID:30817c1a0e6d646d99c048fc403f5979", + "GUID:72872094b21c16e48b631b2224833d49", "GUID:1d0b9d21c3ff546a4aa32399dfd33474" ], "includePlatforms": [