Browse Source

小地图优化

Dai Guangjun 4 years ago
parent
commit
e29478e1f6

+ 4 - 3
Assets/XDKUnityCloudExamples/Common/Scripts/Test/TeshMap.cs

@@ -35,7 +35,7 @@ public class TeshMap : MonoBehaviour
     /// <summary>
     ///   场景所有水晶点
     /// </summary>
-    public List<Transform> listPoint;
+   // public List<Transform> listPoint;
     public LineRenderer line;
 
     List<Vector3> listPointPos;
@@ -103,7 +103,8 @@ public class TeshMap : MonoBehaviour
         //{
         //    //listPoint[i].position = list_Pos[i + 3].position;
         //}
-        MapPoint();
+       // listPoint = list_Pos;
+        MapPoint( list_Pos);
     }
 
 
@@ -154,7 +155,7 @@ public class TeshMap : MonoBehaviour
     /// <summary>
     ///  计算场景水晶点位置
     /// </summary>
-    private void MapPoint()
+    private void MapPoint(List<Transform> listPoint)
     {
         if (listPoint.Count <= 0)
             return;

+ 1 - 9
Assets/XDKUnityCloudExamples/Demo/Scenes/Demo.unity

@@ -18223,7 +18223,7 @@ Light:
   m_BounceIntensity: 1
   m_ColorTemperature: 6570
   m_UseColorTemperature: 0
-  m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
+  m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 2.84e-43}
   m_UseBoundingSphereOverride: 0
   m_ShadowRadius: 0
   m_ShadowAngle: 0
@@ -23673,14 +23673,6 @@ MonoBehaviour:
   mapSize: {x: 16.54, y: 6.9}
   disZ: 0
   disX: 0
-  listPoint:
-  - {fileID: 1246477379}
-  - {fileID: 416153020}
-  - {fileID: 87033944}
-  - {fileID: 1167795246}
-  - {fileID: 1335957573}
-  - {fileID: 198380072}
-  - {fileID: 446303757}
   line: {fileID: 382232266}
 --- !u!1 &1802815758
 GameObject:

+ 2 - 10
Assets/XDKUnityCloudExamples/Demo/Scenes/DemoTest.unity → Assets/XDKUnityCloudExamples/Demo/Scenes/SlamDemo3.unity

@@ -14217,7 +14217,7 @@ PrefabInstance:
     - target: {fileID: 6007065485426162334, guid: 7cd0ceba7525bdc42a36be841a8aad16,
         type: 3}
       propertyPath: m_LocalPosition.x
-      value: 0
+      value: 3.45
       objectReference: {fileID: 0}
     - target: {fileID: 6007065485426162334, guid: 7cd0ceba7525bdc42a36be841a8aad16,
         type: 3}
@@ -14227,7 +14227,7 @@ PrefabInstance:
     - target: {fileID: 6007065485426162334, guid: 7cd0ceba7525bdc42a36be841a8aad16,
         type: 3}
       propertyPath: m_LocalPosition.z
-      value: 0
+      value: -0.31
       objectReference: {fileID: 0}
     - target: {fileID: 6007065485426162334, guid: 7cd0ceba7525bdc42a36be841a8aad16,
         type: 3}
@@ -23700,14 +23700,6 @@ MonoBehaviour:
   mapSize: {x: 16.54, y: 6.9}
   disZ: 0
   disX: 0
-  listPoint:
-  - {fileID: 1246477379}
-  - {fileID: 416153020}
-  - {fileID: 87033944}
-  - {fileID: 1167795246}
-  - {fileID: 1335957573}
-  - {fileID: 198380072}
-  - {fileID: 446303757}
   line: {fileID: 382232266}
 --- !u!1 &1802815758
 GameObject:

+ 0 - 0
Assets/XDKUnityCloudExamples/Demo/Scenes/DemoTest.unity.meta → Assets/XDKUnityCloudExamples/Demo/Scenes/SlamDemo3.unity.meta


+ 4 - 1
ProjectSettings/EditorBuildSettings.asset

@@ -5,7 +5,7 @@ EditorBuildSettings:
   m_ObjectHideFlags: 0
   serializedVersion: 2
   m_Scenes:
-  - enabled: 1
+  - enabled: 0
     path: Assets/XDKUnityCloudExamples/Demo/Scenes/Demo.unity
     guid: d4e84f7ba7682b64b952dedd7052e15e
   - enabled: 0
@@ -14,4 +14,7 @@ EditorBuildSettings:
   - enabled: 0
     path: Assets/XDKUnityCloudExamples/Demo/Scenes/SlamDemo.unity
     guid: 9d7d9a660b8c73b4bb8e1562fd58b939
+  - enabled: 1
+    path: Assets/XDKUnityCloudExamples/Demo/Scenes/SlamDemo3.unity
+    guid: 6da09f360673c5d429ccf1b41d20c6a4
   m_configObjects: {}

+ 3 - 2
ProjectSettings/ProjectSettings.asset

@@ -13,7 +13,7 @@ PlayerSettings:
   useOnDemandResources: 0
   accelerometerFrequency: 60
   companyName: shadowcreator
-  productName: SLAM_MR_Navigator
+  productName: MR_Navigator_Slam.3
   defaultCursor: {fileID: 0}
   cursorHotspot: {x: 0, y: 0}
   m_SplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1}
@@ -166,7 +166,7 @@ PlayerSettings:
   androidSupportedAspectRatio: 1
   androidMaxAspectRatio: 2.1
   applicationIdentifier:
-    Android: com.sc.SLAMMRNavigator
+    Android: com.sc.SlamPointCloud
   buildNumber: {}
   AndroidBundleVersionCode: 1
   AndroidMinSdkVersion: 24
@@ -646,6 +646,7 @@ PlayerSettings:
   webGLWasmStreaming: 0
   scriptingDefineSymbols:
     1: UNITY_CCU;CURVEDUI_TMP
+    7: UNITY_CCU;CURVEDUI_TMP
   platformArchitecture: {}
   scriptingBackend:
     Android: 1