From 1b6bb1e28a24b16929b6e6c85d706dc0839c90ce Mon Sep 17 00:00:00 2001 From: JesusLuvsYooh <57072365+JesusLuvsYooh@users.noreply.github.com> Date: Thu, 1 Jun 2023 11:37:13 +0100 Subject: [PATCH] NT-UR Example presets (#3494) Tested on tanks example, parent and child turret. Scenarios were regular localhost, then latency sim defaults (200ping, 2% loss etc) and bad connection (500 ping, 5% loss etc), along with personal experience of the settings on NT thee 3 presets should cover most peoples scenarios. --- Assets/Mirror/Presets.meta | 8 ++ Assets/Mirror/Presets/NetworkTransform.meta | 8 ++ .../ClientAuth-Balanced.preset | 124 ++++++++++++++++++ .../ClientAuth-Balanced.preset.meta | 8 ++ .../ClientAuth-FastPaced.preset | 124 ++++++++++++++++++ .../ClientAuth-FastPaced.preset.meta | 8 ++ .../ClientAuth-VeryCasual.preset | 124 ++++++++++++++++++ .../ClientAuth-VeryCasual.preset.meta | 8 ++ 8 files changed, 412 insertions(+) create mode 100644 Assets/Mirror/Presets.meta create mode 100644 Assets/Mirror/Presets/NetworkTransform.meta create mode 100644 Assets/Mirror/Presets/NetworkTransform/ClientAuth-Balanced.preset create mode 100644 Assets/Mirror/Presets/NetworkTransform/ClientAuth-Balanced.preset.meta create mode 100644 Assets/Mirror/Presets/NetworkTransform/ClientAuth-FastPaced.preset create mode 100644 Assets/Mirror/Presets/NetworkTransform/ClientAuth-FastPaced.preset.meta create mode 100644 Assets/Mirror/Presets/NetworkTransform/ClientAuth-VeryCasual.preset create mode 100644 Assets/Mirror/Presets/NetworkTransform/ClientAuth-VeryCasual.preset.meta diff --git a/Assets/Mirror/Presets.meta b/Assets/Mirror/Presets.meta new file mode 100644 index 000000000..b8cf771c2 --- /dev/null +++ b/Assets/Mirror/Presets.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 80d00a982048947fa93f2be2ea402b4e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Presets/NetworkTransform.meta b/Assets/Mirror/Presets/NetworkTransform.meta new file mode 100644 index 000000000..561aec581 --- /dev/null +++ b/Assets/Mirror/Presets/NetworkTransform.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: eb1ce23d9d0fa494d919aefb1f1fc1d8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Presets/NetworkTransform/ClientAuth-Balanced.preset b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-Balanced.preset new file mode 100644 index 000000000..59bde78dd --- /dev/null +++ b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-Balanced.preset @@ -0,0 +1,124 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!181963792 &2655988077585873504 +Preset: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: ClientAuth-Balanced + m_TargetType: + m_NativeTypeID: 114 + m_ManagedTypePPtr: {fileID: 11500000, guid: 2f74aedd71d9a4f55b3ce499326d45fb, + type: 3} + m_ManagedTypeFallback: + m_Properties: + - target: {fileID: 0} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_EditorHideFlags + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_EditorClassIdentifier + value: + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncDirection + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncMode + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncInterval + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: target + value: + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: clientAuthority + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncPosition + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncRotation + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncScale + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: interpolatePosition + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: interpolateRotation + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: interpolateScale + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: sendIntervalMultiplier + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: timelineOffset + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: showGizmos + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: showOverlay + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.r + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.g + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.b + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.a + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: onlySyncOnChange + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: bufferResetMultiplier + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: positionSensitivity + value: 0.01 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: rotationSensitivity + value: 0.01 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: scaleSensitivity + value: 0.01 + objectReference: {fileID: 0} + m_ExcludedProperties: [] diff --git a/Assets/Mirror/Presets/NetworkTransform/ClientAuth-Balanced.preset.meta b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-Balanced.preset.meta new file mode 100644 index 000000000..d5e6c2024 --- /dev/null +++ b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-Balanced.preset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e60045a6c41184f7a97cfa46762adb24 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2655988077585873504 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Presets/NetworkTransform/ClientAuth-FastPaced.preset b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-FastPaced.preset new file mode 100644 index 000000000..29ec753a1 --- /dev/null +++ b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-FastPaced.preset @@ -0,0 +1,124 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!181963792 &2655988077585873504 +Preset: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: ClientAuth-FastPaced + m_TargetType: + m_NativeTypeID: 114 + m_ManagedTypePPtr: {fileID: 11500000, guid: 2f74aedd71d9a4f55b3ce499326d45fb, + type: 3} + m_ManagedTypeFallback: + m_Properties: + - target: {fileID: 0} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_EditorHideFlags + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_EditorClassIdentifier + value: + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncDirection + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncMode + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncInterval + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: target + value: + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: clientAuthority + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncPosition + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncRotation + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncScale + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: interpolatePosition + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: interpolateRotation + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: interpolateScale + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: sendIntervalMultiplier + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: timelineOffset + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: showGizmos + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: showOverlay + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.r + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.g + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.b + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.a + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: onlySyncOnChange + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: bufferResetMultiplier + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: positionSensitivity + value: 0.01 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: rotationSensitivity + value: 0.01 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: scaleSensitivity + value: 0.01 + objectReference: {fileID: 0} + m_ExcludedProperties: [] diff --git a/Assets/Mirror/Presets/NetworkTransform/ClientAuth-FastPaced.preset.meta b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-FastPaced.preset.meta new file mode 100644 index 000000000..7a23b7539 --- /dev/null +++ b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-FastPaced.preset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 628910e11d35a46ef8b3556b13f59db3 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2655988077585873504 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Presets/NetworkTransform/ClientAuth-VeryCasual.preset b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-VeryCasual.preset new file mode 100644 index 000000000..cacaf51f8 --- /dev/null +++ b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-VeryCasual.preset @@ -0,0 +1,124 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!181963792 &2655988077585873504 +Preset: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: ClientAuth-VeryCasual + m_TargetType: + m_NativeTypeID: 114 + m_ManagedTypePPtr: {fileID: 11500000, guid: 2f74aedd71d9a4f55b3ce499326d45fb, + type: 3} + m_ManagedTypeFallback: + m_Properties: + - target: {fileID: 0} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_EditorHideFlags + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_EditorClassIdentifier + value: + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncDirection + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncMode + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncInterval + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: target + value: + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: clientAuthority + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncPosition + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncRotation + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: syncScale + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: interpolatePosition + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: interpolateRotation + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: interpolateScale + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: sendIntervalMultiplier + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: timelineOffset + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: showGizmos + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: showOverlay + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.r + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.g + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.b + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: overlayColor.a + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: onlySyncOnChange + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: bufferResetMultiplier + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: positionSensitivity + value: 0.01 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: rotationSensitivity + value: 0.01 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: scaleSensitivity + value: 0.01 + objectReference: {fileID: 0} + m_ExcludedProperties: [] diff --git a/Assets/Mirror/Presets/NetworkTransform/ClientAuth-VeryCasual.preset.meta b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-VeryCasual.preset.meta new file mode 100644 index 000000000..7f810cf0b --- /dev/null +++ b/Assets/Mirror/Presets/NetworkTransform/ClientAuth-VeryCasual.preset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6c70320295478407885dc307baa7091a +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2655988077585873504 + userData: + assetBundleName: + assetBundleVariant: