From 8b906f16def01047c806a5073cf430a8fcaca165 Mon Sep 17 00:00:00 2001 From: miwarnec Date: Mon, 4 Nov 2024 10:36:17 +0100 Subject: [PATCH] enable debug draw --- .../Examples/PlayerTest/PlayerHybrid.prefab | 50 ++++--------------- 1 file changed, 9 insertions(+), 41 deletions(-) diff --git a/Assets/Mirror/Examples/PlayerTest/PlayerHybrid.prefab b/Assets/Mirror/Examples/PlayerTest/PlayerHybrid.prefab index e4b100636..384e33ed2 100644 --- a/Assets/Mirror/Examples/PlayerTest/PlayerHybrid.prefab +++ b/Assets/Mirror/Examples/PlayerTest/PlayerHybrid.prefab @@ -26,13 +26,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3342527215728230228} - serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 1.4999999, z: 0} m_LocalScale: {x: 0.099999994, y: 0.099999994, z: 0.099999994} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 4659514702152478195} + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!23 &6511570575193480752 MeshRenderer: @@ -51,8 +51,6 @@ MeshRenderer: m_ReflectionProbeUsage: 1 m_RayTracingMode: 2 m_RayTraceProcedural: 0 - m_RayTracingAccelStructBuildFlagsOverride: 0 - m_RayTracingAccelStructBuildFlags: 1 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -137,13 +135,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4592122871669721618} - serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0.39999998, z: 0.5} m_LocalScale: {x: 0.5, y: 0.1, z: 0.2} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3834521907656645861} + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &7450643213444322531 MeshFilter: @@ -170,8 +168,6 @@ MeshRenderer: m_ReflectionProbeUsage: 1 m_RayTracingMode: 2 m_RayTraceProcedural: 0 - m_RayTracingAccelStructBuildFlagsOverride: 0 - m_RayTracingAccelStructBuildFlags: 1 m_RenderingLayerMask: 4294967295 m_RendererPriority: 0 m_Materials: @@ -222,7 +218,6 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5844787331012650587} - serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -230,6 +225,7 @@ Transform: m_Children: - {fileID: 5246057292441020322} m_Father: {fileID: 4659514702152478195} + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &7647174189108629449 MeshFilter: @@ -256,8 +252,6 @@ MeshRenderer: m_ReflectionProbeUsage: 1 m_RayTracingMode: 2 m_RayTraceProcedural: 0 - m_RayTracingAccelStructBuildFlagsOverride: 0 - m_RayTracingAccelStructBuildFlags: 1 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -314,7 +308,6 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7863680369626900553} - serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 1.1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -323,6 +316,7 @@ Transform: - {fileID: 3834521907656645861} - {fileID: 3595398802692822242} m_Father: {fileID: 0} + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!136 &4284051235536850638 CapsuleCollider: @@ -332,17 +326,8 @@ CapsuleCollider: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7863680369626900553} m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_LayerOverridePriority: 0 m_IsTrigger: 0 - m_ProvidesContacts: 0 m_Enabled: 1 - serializedVersion: 2 m_Radius: 0.5 m_Height: 2 m_Direction: 1 @@ -355,17 +340,9 @@ CharacterController: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7863680369626900553} m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_LayerOverridePriority: 0 m_IsTrigger: 0 - m_ProvidesContacts: 0 m_Enabled: 0 - serializedVersion: 3 + serializedVersion: 2 m_Height: 2 m_Radius: 0.5 m_SlopeLimit: 45 @@ -380,21 +357,10 @@ Rigidbody: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7863680369626900553} - serializedVersion: 4 + serializedVersion: 2 m_Mass: 1 m_Drag: 0 m_AngularDrag: 0.05 - m_CenterOfMass: {x: 0, y: 0, z: 0} - m_InertiaTensor: {x: 1, y: 1, z: 1} - m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ImplicitCom: 1 - m_ImplicitTensor: 1 m_UseGravity: 1 m_IsKinematic: 1 m_Interpolate: 0 @@ -479,6 +445,7 @@ MonoBehaviour: syncPosition: 1 syncRotation: 1 disableSendingThisToClients: 0 + debugDraw: 1 showGizmos: 1 showOverlay: 1 overlayColor: {r: 0, g: 0, b: 0, a: 0.5} @@ -498,7 +465,8 @@ MonoBehaviour: syncMode: 0 syncInterval: 0 characterController: {fileID: 1014105431373575527} - ControllerUIPrefab: {fileID: 644766297742565710, guid: 7beee247444994f0281dadde274cc4af, type: 3} + ControllerUIPrefab: {fileID: 644766297742565710, guid: 7beee247444994f0281dadde274cc4af, + type: 3} moveKeys: Forward: 119 Back: 115