代码提交

This commit is contained in:
lujiajian 2025-11-27 14:00:21 +08:00
parent 709404ed17
commit b67ea980a3
3 changed files with 397 additions and 513 deletions

View File

@ -820,10 +820,20 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
enableAutoSave: 1 enableAutoSave: 1
autoSaveInterval: 10 autoSaveInterval: 120
saveFileName: WireData.json saveFileName: WireData.json
loadOnStart: 1 loadOnStart: 1
debugMode: 1 debugMode: 1
saveOnWireChange: 1
cylinderWireMaterial: {fileID: 0}
defaultWireColor: {r: 1, g: 1, b: 1, a: 1}
defaultConnectionPointMaterial: {fileID: 0}
defaultStartPointColor: {r: 0, g: 1, b: 0, a: 1}
defaultEndPointColor: {r: 1, g: 0, b: 0, a: 1}
enableDebugging: 1
manualSaveKey: 286
manualLoadKey: 290
debugInfoKey: 292
--- !u!1 &154209944 --- !u!1 &154209944
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -39,6 +39,22 @@ public class SerializableWireConnectionData
public bool hasEndInterface; public bool hasEndInterface;
public string debugInfo; public string debugInfo;
public string wireType; public string wireType;
// 新增:颜色数据
public float wireColorR = 1f;
public float wireColorG = 1f;
public float wireColorB = 1f;
public float wireColorA = 1f;
public bool hasCustomColor = false;
// 新增:连接点样式数据
public float connectionPointScale = 0.1f;
public float startPointColorR = 1f;
public float startPointColorG = 1f;
public float startPointColorB = 1f;
public float endPointColorR = 1f;
public float endPointColorG = 1f;
public float endPointColorB = 1f;
} }
public class WireDataPersistence : MonoBehaviour public class WireDataPersistence : MonoBehaviour
@ -53,6 +69,12 @@ public class WireDataPersistence : MonoBehaviour
[Header("圆柱体连线设置")] [Header("圆柱体连线设置")]
public Material cylinderWireMaterial; // 圆柱体连线材质 public Material cylinderWireMaterial; // 圆柱体连线材质
public Color defaultWireColor = Color.white; // 默认连线颜色
[Header("连接点设置")]
public Material defaultConnectionPointMaterial; // 默认连接点材质
public Color defaultStartPointColor = Color.green; // 默认起点颜色
public Color defaultEndPointColor = Color.red; // 默认终点颜色
[Header("调试工具")] [Header("调试工具")]
public bool enableDebugging = true; // 启用调试工具 public bool enableDebugging = true; // 启用调试工具
@ -140,12 +162,16 @@ public class WireDataPersistence : MonoBehaviour
Debug.Log($"场景名称: {data.sceneName}"); Debug.Log($"场景名称: {data.sceneName}");
Debug.Log($"实际保存的连线数据条数: {data.wires.Count}"); Debug.Log($"实际保存的连线数据条数: {data.wires.Count}");
// 显示连线类型统计 // 显示连线类型统计和颜色信息
var typeGroups = data.wires.GroupBy(w => w.wireType); var typeGroups = data.wires.GroupBy(w => w.wireType);
foreach (var group in typeGroups) foreach (var group in typeGroups)
{ {
Debug.Log($"连线类型 '{group.Key}': {group.Count()} 条"); Debug.Log($"连线类型 '{group.Key}': {group.Count()} 条");
} }
// 显示颜色信息
int coloredWires = data.wires.Count(w => w.hasCustomColor);
Debug.Log($"有自定义颜色的连线: {coloredWires}/{data.wires.Count}");
} }
catch (System.Exception e) catch (System.Exception e)
{ {
@ -291,7 +317,7 @@ public class WireDataPersistence : MonoBehaviour
{ {
data.wires.Add(wireData); data.wires.Add(wireData);
savedCount++; savedCount++;
if (debugMode) Debug.Log($"成功保存连线数据: {wireData.wireName} (类型: {wireData.wireType})"); if (debugMode) Debug.Log($"成功保存连线数据: {wireData.wireName} (类型: {wireData.wireType}, 颜色: {wireData.hasCustomColor})");
} }
else else
{ {
@ -323,6 +349,10 @@ public class WireDataPersistence : MonoBehaviour
{ {
Debug.Log($"保存的连线类型 '{group.Key}': {group.Count()} 条"); Debug.Log($"保存的连线类型 '{group.Key}': {group.Count()} 条");
} }
// 显示颜色统计
int coloredWires = data.wires.Count(w => w.hasCustomColor);
Debug.Log($"保存的有颜色连线: {coloredWires}/{data.wires.Count}");
} }
} }
catch (System.Exception e) catch (System.Exception e)
@ -369,6 +399,10 @@ public class WireDataPersistence : MonoBehaviour
{ {
Debug.Log($"要加载的连线类型 '{group.Key}': {group.Count()} 条"); Debug.Log($"要加载的连线类型 '{group.Key}': {group.Count()} 条");
} }
// 显示颜色统计
int coloredWires = data.wires.Count(w => w.hasCustomColor);
Debug.Log($"要加载的有颜色连线: {coloredWires}/{data.wires.Count}");
} }
// 如果 wires 为空但 wireCount > 0说明数据有问题 // 如果 wires 为空但 wireCount > 0说明数据有问题
@ -466,7 +500,7 @@ public class WireDataPersistence : MonoBehaviour
{ {
try try
{ {
if (debugMode) Debug.Log($"开始重建连线: {wireData.wireName} (类型: {wireData.wireType})"); if (debugMode) Debug.Log($"开始重建连线: {wireData.wireName} (类型: {wireData.wireType}, 颜色: {wireData.hasCustomColor})");
// 查找接口物体 // 查找接口物体
GameObject startInterface = FindInterfaceByName(wireData.startInterfaceName); GameObject startInterface = FindInterfaceByName(wireData.startInterfaceName);
@ -527,6 +561,7 @@ public class WireDataPersistence : MonoBehaviour
{ {
Debug.Log($"WireDataPersistence: 成功重建圆柱体连线: {wireData.wireName}"); Debug.Log($"WireDataPersistence: 成功重建圆柱体连线: {wireData.wireName}");
Debug.Log($"圆柱体缩放: {wireData.cylinderScale}, 位置: {wireData.cylinderPosition}"); Debug.Log($"圆柱体缩放: {wireData.cylinderScale}, 位置: {wireData.cylinderPosition}");
Debug.Log($"连线颜色: {wireData.hasCustomColor}");
} }
return true; return true;
} }
@ -596,7 +631,7 @@ public class WireDataPersistence : MonoBehaviour
} }
/// <summary> /// <summary>
/// 创建圆柱体视觉表现 - 使用保存的圆柱体数据 /// 创建圆柱体视觉表现 - 使用保存的圆柱体数据和颜色
/// </summary> /// </summary>
private void CreateCylinderVisual(GameObject wireObject, SerializableWireConnectionData wireData) private void CreateCylinderVisual(GameObject wireObject, SerializableWireConnectionData wireData)
{ {
@ -665,13 +700,52 @@ public class WireDataPersistence : MonoBehaviour
if (debugMode) Debug.Log($"使用保存的圆柱体旋转: {wireData.cylinderRotation}"); if (debugMode) Debug.Log($"使用保存的圆柱体旋转: {wireData.cylinderRotation}");
} }
// 设置材质 // 设置材质和颜色
if (cylinderWireMaterial != null)
{
Renderer renderer = cylinder.GetComponent<Renderer>(); Renderer renderer = cylinder.GetComponent<Renderer>();
if (renderer != null) if (renderer != null)
{ {
renderer.material = cylinderWireMaterial; if (cylinderWireMaterial != null)
{
// 使用实例化材质以便单独设置颜色
Material wireMaterial = new Material(cylinderWireMaterial);
// 如果保存了自定义颜色,使用保存的颜色;否则使用默认颜色
if (wireData.hasCustomColor)
{
Color savedColor = new Color(
wireData.wireColorR,
wireData.wireColorG,
wireData.wireColorB,
wireData.wireColorA
);
wireMaterial.color = savedColor;
if (debugMode) Debug.Log($"应用保存的连线颜色: {savedColor}");
}
else
{
wireMaterial.color = defaultWireColor;
if (debugMode) Debug.Log($"应用默认连线颜色: {defaultWireColor}");
}
renderer.material = wireMaterial;
}
else
{
// 如果没有指定材质,直接设置颜色
if (wireData.hasCustomColor)
{
Color savedColor = new Color(
wireData.wireColorR,
wireData.wireColorG,
wireData.wireColorB,
wireData.wireColorA
);
renderer.material.color = savedColor;
}
else
{
renderer.material.color = defaultWireColor;
}
} }
} }
@ -682,7 +756,7 @@ public class WireDataPersistence : MonoBehaviour
DestroyImmediate(collider); DestroyImmediate(collider);
} }
if (debugMode) Debug.Log($"圆柱体视觉创建完成: 位置={cylinder.transform.position}, 缩放={cylinder.transform.localScale}"); if (debugMode) Debug.Log($"圆柱体视觉创建完成: 位置={cylinder.transform.position}, 缩放={cylinder.transform.localScale}, 颜色={renderer.material.color}");
} }
catch (System.Exception e) catch (System.Exception e)
{ {
@ -691,7 +765,7 @@ public class WireDataPersistence : MonoBehaviour
} }
/// <summary> /// <summary>
/// 为连线创建连接点 /// 为连线创建连接点 - 恢复连接点样式
/// </summary> /// </summary>
private void CreateConnectionPointsForWire(GameObject wireObject, SerializableWireConnectionData wireData, private void CreateConnectionPointsForWire(GameObject wireObject, SerializableWireConnectionData wireData,
GameObject startInterface, GameObject endInterface) GameObject startInterface, GameObject endInterface)
@ -713,7 +787,10 @@ public class WireDataPersistence : MonoBehaviour
GameObject startConnectionPoint = CreateConnectionPoint( GameObject startConnectionPoint = CreateConnectionPoint(
wireData.startConnectionPointPosition, wireData.startConnectionPointPosition,
"ConnectionPoint_Start_Restored", "ConnectionPoint_Start_Restored",
connectionPointPrefab connectionPointPrefab,
wireData.connectionPointScale,
new Color(wireData.startPointColorR, wireData.startPointColorG, wireData.startPointColorB),
true
); );
if (startConnectionPoint != null) if (startConnectionPoint != null)
@ -728,7 +805,10 @@ public class WireDataPersistence : MonoBehaviour
GameObject endConnectionPoint = CreateConnectionPoint( GameObject endConnectionPoint = CreateConnectionPoint(
wireData.endConnectionPointPosition, wireData.endConnectionPointPosition,
"ConnectionPoint_End_Restored", "ConnectionPoint_End_Restored",
connectionPointPrefab connectionPointPrefab,
wireData.connectionPointScale,
new Color(wireData.endPointColorR, wireData.endPointColorG, wireData.endPointColorB),
false
); );
if (endConnectionPoint != null) if (endConnectionPoint != null)
@ -745,9 +825,9 @@ public class WireDataPersistence : MonoBehaviour
} }
/// <summary> /// <summary>
/// 创建连接点 /// 创建连接点 - 支持颜色和样式恢复
/// </summary> /// </summary>
private GameObject CreateConnectionPoint(Vector3 position, string name, GameObject prefab) private GameObject CreateConnectionPoint(Vector3 position, string name, GameObject prefab, float scale, Color color, bool isStartPoint)
{ {
if (prefab == null) return null; if (prefab == null) return null;
@ -758,37 +838,39 @@ public class WireDataPersistence : MonoBehaviour
// 设置缩放 // 设置缩放
try try
{ {
var connectionPointScaleField = typeof(WireDrawingSystem).GetField("connectionPointScale", connectionPoint.transform.localScale = Vector3.one * scale;
BindingFlags.Public | BindingFlags.Instance); if (debugMode) Debug.Log($"设置连接点缩放: {scale}");
float connectionPointScale = connectionPointScaleField != null ?
(float)connectionPointScaleField.GetValue(wireSystem) : 0.1f;
connectionPoint.transform.localScale = Vector3.one * connectionPointScale;
} }
catch catch
{ {
connectionPoint.transform.localScale = Vector3.one * 0.1f; connectionPoint.transform.localScale = Vector3.one * 0.1f;
} }
// 设置材质 // 设置材质和颜色
try try
{
var connectionPointMaterialField = typeof(WireDrawingSystem).GetField("connectionPointMaterial",
BindingFlags.Public | BindingFlags.Instance);
Material connectionPointMaterial = connectionPointMaterialField != null ?
(Material)connectionPointMaterialField.GetValue(wireSystem) : null;
if (connectionPointMaterial != null)
{ {
Renderer renderer = connectionPoint.GetComponent<Renderer>(); Renderer renderer = connectionPoint.GetComponent<Renderer>();
if (renderer != null) if (renderer != null)
{ {
renderer.material = connectionPointMaterial; if (defaultConnectionPointMaterial != null)
}
}
}
catch
{ {
// 忽略材质设置错误 // 使用实例化材质以便单独设置颜色
Material pointMaterial = new Material(defaultConnectionPointMaterial);
pointMaterial.color = color;
renderer.material = pointMaterial;
if (debugMode) Debug.Log($"应用连接点颜色: {color} ({(isStartPoint ? "" : "")})");
}
else
{
// 直接设置材质颜色
renderer.material.color = color;
}
}
}
catch (System.Exception e)
{
Debug.LogWarning($"设置连接点材质失败: {e.Message}");
} }
return connectionPoint; return connectionPoint;
@ -842,7 +924,7 @@ public class WireDataPersistence : MonoBehaviour
} }
/// <summary> /// <summary>
/// 获取连线的连接数据 - 关键修复方法,保存圆柱体数据 /// 获取连线的连接数据 - 关键修复方法,保存圆柱体数据和颜色
/// </summary> /// </summary>
private SerializableWireConnectionData GetWireConnectionData(GameObject wireObject) private SerializableWireConnectionData GetWireConnectionData(GameObject wireObject)
{ {
@ -898,7 +980,7 @@ public class WireDataPersistence : MonoBehaviour
} }
} }
// 查找圆柱体子物体并保存其数据 // 查找圆柱体子物体并保存其数据和颜色
Transform cylinderChild = wireObject.transform.Find("WireCylinder"); Transform cylinderChild = wireObject.transform.Find("WireCylinder");
if (cylinderChild != null) if (cylinderChild != null)
{ {
@ -909,22 +991,57 @@ public class WireDataPersistence : MonoBehaviour
// 计算圆柱体半径取X和Z缩放的平均值 // 计算圆柱体半径取X和Z缩放的平均值
connectionData.cylinderRadius = (cylinderChild.localScale.x + cylinderChild.localScale.z) / 2f; connectionData.cylinderRadius = (cylinderChild.localScale.x + cylinderChild.localScale.z) / 2f;
// 保存圆柱体颜色
Renderer cylinderRenderer = cylinderChild.GetComponent<Renderer>();
if (cylinderRenderer != null && cylinderRenderer.material != null)
{
Color wireColor = cylinderRenderer.material.color;
connectionData.wireColorR = wireColor.r;
connectionData.wireColorG = wireColor.g;
connectionData.wireColorB = wireColor.b;
connectionData.wireColorA = wireColor.a;
connectionData.hasCustomColor = true;
if (debugMode) Debug.Log($"保存连线颜色: {wireColor}");
}
if (debugMode) if (debugMode)
{ {
Debug.Log($"保存圆柱体数据: 缩放={connectionData.cylinderScale}, 位置={connectionData.cylinderPosition}, 半径={connectionData.cylinderRadius}"); Debug.Log($"保存圆柱体数据: 缩放={connectionData.cylinderScale}, 位置={connectionData.cylinderPosition}, 半径={connectionData.cylinderRadius}");
} }
} }
// 查找连接点的位置 // 查找连接点的位置、缩放和颜色
foreach (Transform child in wireObject.transform) foreach (Transform child in wireObject.transform)
{ {
if (child.name.StartsWith("ConnectionPoint_Start")) if (child.name.StartsWith("ConnectionPoint_Start"))
{ {
connectionData.startConnectionPointPosition = child.position; connectionData.startConnectionPointPosition = child.position;
connectionData.connectionPointScale = child.localScale.x; // 假设均匀缩放
// 保存起点连接点颜色
Renderer startRenderer = child.GetComponent<Renderer>();
if (startRenderer != null && startRenderer.material != null)
{
Color startColor = startRenderer.material.color;
connectionData.startPointColorR = startColor.r;
connectionData.startPointColorG = startColor.g;
connectionData.startPointColorB = startColor.b;
}
} }
else if (child.name.StartsWith("ConnectionPoint_End")) else if (child.name.StartsWith("ConnectionPoint_End"))
{ {
connectionData.endConnectionPointPosition = child.position; connectionData.endConnectionPointPosition = child.position;
// 保存终点连接点颜色
Renderer endRenderer = child.GetComponent<Renderer>();
if (endRenderer != null && endRenderer.material != null)
{
Color endColor = endRenderer.material.color;
connectionData.endPointColorR = endColor.r;
connectionData.endPointColorG = endColor.g;
connectionData.endPointColorB = endColor.b;
}
} }
} }
@ -932,6 +1049,7 @@ public class WireDataPersistence : MonoBehaviour
{ {
Debug.Log($"从 CylinderWireData 组件获取连线数据: {connectionData.wireName}"); Debug.Log($"从 CylinderWireData 组件获取连线数据: {connectionData.wireName}");
Debug.Log($"起点: {connectionData.startPoint}, 终点: {connectionData.endPoint}"); Debug.Log($"起点: {connectionData.startPoint}, 终点: {connectionData.endPoint}");
Debug.Log($"连线颜色: {connectionData.hasCustomColor}");
} }
return connectionData; return connectionData;
} }
@ -954,16 +1072,51 @@ public class WireDataPersistence : MonoBehaviour
wireType = "WireData" wireType = "WireData"
}; };
// 查找连接点的位置 // 查找连接点的位置、缩放和颜色
foreach (Transform child in wireObject.transform) foreach (Transform child in wireObject.transform)
{ {
if (child.name.StartsWith("ConnectionPoint_Start")) if (child.name.StartsWith("ConnectionPoint_Start"))
{ {
connectionData.startConnectionPointPosition = child.position; connectionData.startConnectionPointPosition = child.position;
connectionData.connectionPointScale = child.localScale.x;
Renderer startRenderer = child.GetComponent<Renderer>();
if (startRenderer != null && startRenderer.material != null)
{
Color startColor = startRenderer.material.color;
connectionData.startPointColorR = startColor.r;
connectionData.startPointColorG = startColor.g;
connectionData.startPointColorB = startColor.b;
}
} }
else if (child.name.StartsWith("ConnectionPoint_End")) else if (child.name.StartsWith("ConnectionPoint_End"))
{ {
connectionData.endConnectionPointPosition = child.position; connectionData.endConnectionPointPosition = child.position;
Renderer endRenderer = child.GetComponent<Renderer>();
if (endRenderer != null && endRenderer.material != null)
{
Color endColor = endRenderer.material.color;
connectionData.endPointColorR = endColor.r;
connectionData.endPointColorG = endColor.g;
connectionData.endPointColorB = endColor.b;
}
}
}
// 尝试获取连线颜色
Transform wireVisual = wireObject.transform.Find("WireCylinder");
if (wireVisual != null)
{
Renderer wireRenderer = wireVisual.GetComponent<Renderer>();
if (wireRenderer != null && wireRenderer.material != null)
{
Color wireColor = wireRenderer.material.color;
connectionData.wireColorR = wireColor.r;
connectionData.wireColorG = wireColor.g;
connectionData.wireColorB = wireColor.b;
connectionData.wireColorA = wireColor.a;
connectionData.hasCustomColor = true;
} }
} }
@ -1039,7 +1192,8 @@ public class WireDataPersistence : MonoBehaviour
{ {
string jsonData = File.ReadAllText(saveFilePath); string jsonData = File.ReadAllText(saveFilePath);
SerializableWireData data = JsonUtility.FromJson<SerializableWireData>(jsonData); SerializableWireData data = JsonUtility.FromJson<SerializableWireData>(jsonData);
return $"WireDataPersistence: 已保存 {data.wires.Count} 条连线, 文件大小: {fileInfo.Length} 字节, 路径: {saveFilePath}"; int coloredWires = data.wires.Count(w => w.hasCustomColor);
return $"WireDataPersistence: 已保存 {data.wires.Count} 条连线 ({coloredWires} 条有颜色), 文件大小: {fileInfo.Length} 字节, 路径: {saveFilePath}";
} }
catch catch
{ {
@ -1088,6 +1242,7 @@ public class WireDataPersistence : MonoBehaviour
int cylinderCount = 0; int cylinderCount = 0;
int lineRendererCount = 0; int lineRendererCount = 0;
int unknownCount = 0; int unknownCount = 0;
int coloredWires = 0;
if (allWires != null) if (allWires != null)
{ {
@ -1098,11 +1253,22 @@ public class WireDataPersistence : MonoBehaviour
if (wire.GetComponent<CylinderWireData>() != null) cylinderCount++; if (wire.GetComponent<CylinderWireData>() != null) cylinderCount++;
else if (wire.GetComponent<LineRenderer>() != null) lineRendererCount++; else if (wire.GetComponent<LineRenderer>() != null) lineRendererCount++;
else unknownCount++; else unknownCount++;
// 检查是否有自定义颜色
Transform cylinder = wire.transform.Find("WireCylinder");
if (cylinder != null)
{
Renderer renderer = cylinder.GetComponent<Renderer>();
if (renderer != null && renderer.material != null && renderer.material.color != defaultWireColor)
{
coloredWires++;
}
}
} }
} }
} }
return $"当前场景中有 {allWires?.Count ?? 0} 条连线 (圆柱体: {cylinderCount}, LineRenderer: {lineRendererCount}, 未知: {unknownCount})"; return $"当前场景中有 {allWires?.Count ?? 0} 条连线 (圆柱体: {cylinderCount}, LineRenderer: {lineRendererCount}, 未知: {unknownCount}, 有颜色: {coloredWires})";
} }
catch (System.Exception e) catch (System.Exception e)
{ {
@ -1117,34 +1283,4 @@ public class WireDataPersistence : MonoBehaviour
{ {
SaveWireData(); SaveWireData();
} }
//void OnApplicationQuit()
//{
// // 程序退出时自动保存
// if (enableAutoSave && isInitialized)
// {
// if (debugMode) Debug.Log("WireDataPersistence: 程序退出,保存数据");
// //SaveWireData();
// }
//}
//void OnDestroy()
//{
// // 组件销毁时自动保存
// if (enableAutoSave && isInitialized)
// {
// if (debugMode) Debug.Log("WireDataPersistence: 组件销毁,保存数据");
// //SaveWireData();
// }
//}
//void OnApplicationPause(bool pauseStatus)
//{
// // 应用暂停时保存(移动设备)
// if (pauseStatus && enableAutoSave && isInitialized)
// {
// if (debugMode) Debug.Log("WireDataPersistence: 应用暂停,保存数据");
// // SaveWireData();
// }
//}
} }

View File

@ -4,61 +4,15 @@
"startInterfaceName": "", "startInterfaceName": "",
"endInterfaceName": "", "endInterfaceName": "",
"startConnectionPointPosition": { "startConnectionPointPosition": {
"x": -1.2700444459915162,
"y": -0.24335770308971406,
"z": 0.08528154343366623
},
"endConnectionPointPosition": {
"x": -1.2912330627441407,
"y": -0.26317930221557619,
"z": 0.08528154343366623
},
"startPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"endPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"wireName": "Wire_20251126174803",
"cylinderScale": {
"x": 0.0020000000949949028,
"y": 0.014507354237139225,
"z": 0.0020000000949949028
},
"cylinderPosition": {
"x": -1.2806386947631837,
"y": -0.2532685101032257,
"z": 0.08528154343366623
},
"cylinderRotation": {
"x": 0.0,
"y": 0.0,
"z": 0.9173758625984192,
"w": 0.39802202582359316
},
"cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false,
"hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData"
},
{
"startInterfaceName": "",
"endInterfaceName": "",
"startConnectionPointPosition": {
"x": -1.2912330627441407,
"y": -0.26317930221557619,
"z": 0.09028154611587525
},
"endConnectionPointPosition": {
"x": -1.3185701370239258, "x": -1.3185701370239258,
"y": -0.26755011081695559, "y": -0.26755011081695559,
"z": 0.08528154343366623 "z": 0.08528154343366623
}, },
"endConnectionPointPosition": {
"x": -1.2912330627441407,
"y": -0.26317930221557619,
"z": 0.08528154343366623
},
"startPoint": { "startPoint": {
"x": 0.0, "x": 0.0,
"y": 0.0, "y": 0.0,
@ -69,7 +23,7 @@
"y": 0.0, "y": 0.0,
"z": 0.0 "z": 0.0
}, },
"wireName": "Wire_20251126174805", "wireName": "Wire_20251127134949",
"cylinderScale": { "cylinderScale": {
"x": 0.0020000000949949028, "x": 0.0020000000949949028,
"y": 0.013842142187058926, "y": 0.013842142187058926,
@ -83,26 +37,38 @@
"cylinderRotation": { "cylinderRotation": {
"x": 0.0, "x": 0.0,
"y": 0.0, "y": 0.0,
"z": 0.760881245136261, "z": -0.6488911509513855,
"w": 0.6488911509513855 "w": 0.760881245136261
}, },
"cylinderRadius": 0.0020000000949949028, "cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false, "hasStartInterface": false,
"hasEndInterface": false, "hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取", "debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData" "wireType": "CylinderWireData",
"wireColorR": 0.5943396091461182,
"wireColorG": 0.18467971682548524,
"wireColorB": 0.12615692615509034,
"wireColorA": 1.0,
"hasCustomColor": true,
"connectionPointScale": 0.004999999888241291,
"startPointColorR": 0.7830188274383545,
"startPointColorG": 0.7830188274383545,
"startPointColorB": 0.7830188274383545,
"endPointColorR": 0.7830188274383545,
"endPointColorG": 0.7830188274383545,
"endPointColorB": 0.7830188274383545
}, },
{ {
"startInterfaceName": "", "startInterfaceName": "",
"endInterfaceName": "", "endInterfaceName": "",
"startConnectionPointPosition": { "startConnectionPointPosition": {
"x": -1.3185701370239258, "x": -1.2912330627441407,
"y": -0.26755011081695559, "y": -0.26317930221557619,
"z": 0.09028154611587525 "z": 0.09028154611587525
}, },
"endConnectionPointPosition": { "endConnectionPointPosition": {
"x": -1.3627458810806275, "x": -1.270147442817688,
"y": -0.2951911687850952, "y": -0.3188800513744354,
"z": 0.08528154343366623 "z": 0.08528154343366623
}, },
"startPoint": { "startPoint": {
@ -115,85 +81,167 @@
"y": 0.0, "y": 0.0,
"z": 0.0 "z": 0.0
}, },
"wireName": "Wire_20251126174806", "wireName": "Wire_20251127134950",
"cylinderScale": { "cylinderScale": {
"x": 0.0020000000949949028, "x": 0.0020000000949949028,
"y": 0.02605534717440605, "y": 0.029779089614748956,
"z": 0.0020000000949949028
},
"cylinderPosition": {
"x": -1.2806901931762696,
"y": -0.291029691696167,
"z": 0.08528154343366623
},
"cylinderRotation": {
"x": 0.0,
"y": 0.0,
"z": 0.9836748838424683,
"w": -0.17995478212833405
},
"cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false,
"hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData",
"wireColorR": 0.5943396091461182,
"wireColorG": 0.18467971682548524,
"wireColorB": 0.12615692615509034,
"wireColorA": 1.0,
"hasCustomColor": true,
"connectionPointScale": 0.004999999888241291,
"startPointColorR": 0.7830188274383545,
"startPointColorG": 0.7830188274383545,
"startPointColorB": 0.7830188274383545,
"endPointColorR": 0.7830188274383545,
"endPointColorG": 0.7830188274383545,
"endPointColorB": 0.7830188274383545
},
{
"startInterfaceName": "",
"endInterfaceName": "",
"startConnectionPointPosition": {
"x": -1.270147442817688,
"y": -0.3188800513744354,
"z": 0.09028154611587525
},
"endConnectionPointPosition": {
"x": -1.3185701370239258,
"y": -0.3104493021965027,
"z": 0.08528154343366623
},
"startPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"endPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"wireName": "Wire_20251127134951",
"cylinderScale": {
"x": 0.0020000000949949028,
"y": 0.024575570598244668,
"z": 0.0020000000949949028
},
"cylinderPosition": {
"x": -1.294358730316162,
"y": -0.31466466188430788,
"z": 0.08528154343366623
},
"cylinderRotation": {
"x": 0.0,
"y": 0.0,
"z": 0.6436120867729187,
"w": 0.7653518915176392
},
"cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false,
"hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData",
"wireColorR": 0.5943396091461182,
"wireColorG": 0.18467971682548524,
"wireColorB": 0.12615692615509034,
"wireColorA": 1.0,
"hasCustomColor": true,
"connectionPointScale": 0.004999999888241291,
"startPointColorR": 0.7830188274383545,
"startPointColorG": 0.7830188274383545,
"startPointColorB": 0.7830188274383545,
"endPointColorR": 0.7830188274383545,
"endPointColorG": 0.7830188274383545,
"endPointColorB": 0.7830188274383545
},
{
"startInterfaceName": "",
"endInterfaceName": "",
"startConnectionPointPosition": {
"x": -1.3185701370239258,
"y": -0.3104493021965027,
"z": 0.09028154611587525
},
"endConnectionPointPosition": {
"x": -1.3627458810806275,
"y": -0.3050294816493988,
"z": 0.08528154343366623
},
"startPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"endPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"wireName": "Wire_20251127134952",
"cylinderScale": {
"x": 0.0020000000949949028,
"y": 0.02225348725914955,
"z": 0.0020000000949949028 "z": 0.0020000000949949028
}, },
"cylinderPosition": { "cylinderPosition": {
"x": -1.3406579494476319, "x": -1.3406579494476319,
"y": -0.2813706398010254, "y": -0.30773937702178957,
"z": 0.08528154343366623 "z": 0.08528154343366623
}, },
"cylinderRotation": { "cylinderRotation": {
"x": 0.0, "x": 0.0,
"y": 0.0, "y": 0.0,
"z": 0.8747655749320984, "z": 0.662655770778656,
"w": 0.48454639315605166 "w": 0.7489241361618042
}, },
"cylinderRadius": 0.0020000000949949028, "cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false, "hasStartInterface": false,
"hasEndInterface": false, "hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取", "debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData" "wireType": "CylinderWireData",
"wireColorR": 0.5943396091461182,
"wireColorG": 0.18467971682548524,
"wireColorB": 0.12615692615509034,
"wireColorA": 1.0,
"hasCustomColor": true,
"connectionPointScale": 0.004999999888241291,
"startPointColorR": 0.7830188274383545,
"startPointColorG": 0.7830188274383545,
"startPointColorB": 0.7830188274383545,
"endPointColorR": 0.7830188274383545,
"endPointColorG": 0.7830188274383545,
"endPointColorB": 0.7830188274383545
}, },
{ {
"startInterfaceName": "", "startInterfaceName": "",
"endInterfaceName": "", "endInterfaceName": "",
"startConnectionPointPosition": { "startConnectionPointPosition": {
"x": -1.3627458810806275, "x": -1.3303356170654297,
"y": -0.2951911687850952, "y": -0.26755011081695559,
"z": 0.09028154611587525
},
"endConnectionPointPosition": {
"x": -1.378318190574646,
"y": -0.2723008692264557,
"z": 0.08528154343366623 "z": 0.08528154343366623
}, },
"startPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"endPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"wireName": "Wire_20251126174806",
"cylinderScale": {
"x": 0.0020000000949949028,
"y": 0.01384253054857254,
"z": 0.0020000000949949028
},
"cylinderPosition": {
"x": -1.3705320358276368,
"y": -0.28374600410461428,
"z": 0.08528154343366623
},
"cylinderRotation": {
"x": 0.0,
"y": 0.0,
"z": 0.2942698299884796,
"w": 0.9557223916053772
},
"cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false,
"hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData"
},
{
"startInterfaceName": "",
"endInterfaceName": "",
"startConnectionPointPosition": {
"x": -1.378318190574646,
"y": -0.2723008692264557,
"z": 0.09028154611587525
},
"endConnectionPointPosition": { "endConnectionPointPosition": {
"x": -1.406347632408142, "x": -1.382118821144104,
"y": -0.2516351342201233, "y": -0.2516351342201233,
"z": 0.08528154343366623 "z": 0.08528154343366623
}, },
@ -207,352 +255,42 @@
"y": 0.0, "y": 0.0,
"z": 0.0 "z": 0.0
}, },
"wireName": "Wire_20251126174808", "wireName": "Wire_20251127135401",
"cylinderScale": { "cylinderScale": {
"x": 0.0020000000949949028, "x": 0.0020000000949949028,
"y": 0.017412081360816957, "y": 0.027086835354566575,
"z": 0.0020000000949949028 "z": 0.0020000000949949028
}, },
"cylinderPosition": { "cylinderPosition": {
"x": -1.392332911491394, "x": -1.356227159500122,
"y": -0.2619680166244507, "y": -0.25959262251853945,
"z": 0.08528154343366623 "z": 0.08528154343366623
}, },
"cylinderRotation": { "cylinderRotation": {
"x": 0.0, "x": 0.0,
"y": 0.0, "y": 0.0,
"z": 0.4508708417415619, "z": 0.594231903553009,
"w": 0.8925892114639282 "w": 0.8042938113212586
}, },
"cylinderRadius": 0.0020000000949949028, "cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false, "hasStartInterface": false,
"hasEndInterface": false, "hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取", "debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData" "wireType": "CylinderWireData",
}, "wireColorR": 0.5943396091461182,
{ "wireColorG": 0.18467974662780763,
"startInterfaceName": "", "wireColorB": 0.12615695595741273,
"endInterfaceName": "", "wireColorA": 1.0,
"startConnectionPointPosition": { "hasCustomColor": true,
"x": -1.406347632408142, "connectionPointScale": 0.004999999888241291,
"y": -0.2516351342201233, "startPointColorR": 0.7830188274383545,
"z": 0.09028154611587525 "startPointColorG": 0.7830188274383545,
}, "startPointColorB": 0.7830188274383545,
"endConnectionPointPosition": { "endPointColorR": 0.7830188274383545,
"x": -1.382118821144104, "endPointColorG": 0.7830188274383545,
"y": -0.30075377225875857, "endPointColorB": 0.7830188274383545
"z": 0.08528154343366623
},
"startPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"endPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"wireName": "Wire_20251126174809",
"cylinderScale": {
"x": 0.0020000000949949028,
"y": 0.027384648099541665,
"z": 0.0020000000949949028
},
"cylinderPosition": {
"x": -1.394233226776123,
"y": -0.2761944532394409,
"z": 0.08528154343366623
},
"cylinderRotation": {
"x": 0.0,
"y": 0.0,
"z": 0.9738655090332031,
"w": -0.22712557017803193
},
"cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false,
"hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData"
},
{
"startInterfaceName": "",
"endInterfaceName": "",
"startConnectionPointPosition": {
"x": -1.382118821144104,
"y": -0.30075377225875857,
"z": 0.09028154611587525
},
"endConnectionPointPosition": {
"x": -1.3185701370239258,
"y": -0.3232034742832184,
"z": 0.08528154343366623
},
"startPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"endPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"wireName": "Wire_20251126174812",
"cylinderScale": {
"x": 0.0020000000949949028,
"y": 0.033698756247758868,
"z": 0.0020000000949949028
},
"cylinderPosition": {
"x": -1.3503444194793702,
"y": -0.31197863817214968,
"z": 0.08528154343366623
},
"cylinderRotation": {
"x": 0.0,
"y": 0.0,
"z": -0.8164232969284058,
"w": 0.5774539113044739
},
"cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false,
"hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData"
},
{
"startInterfaceName": "",
"endInterfaceName": "",
"startConnectionPointPosition": {
"x": -1.3185701370239258,
"y": -0.3232034742832184,
"z": 0.09028154611587525
},
"endConnectionPointPosition": {
"x": -1.250161051750183,
"y": -0.3160459101200104,
"z": 0.08528154343366623
},
"startPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"endPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"wireName": "Wire_20251126174813",
"cylinderScale": {
"x": 0.0020000000949949028,
"y": 0.03439125418663025,
"z": 0.0020000000949949028
},
"cylinderPosition": {
"x": -1.2843656539916993,
"y": -0.3196246922016144,
"z": 0.08528154343366623
},
"cylinderRotation": {
"x": 0.0,
"y": 0.0,
"z": -0.6693052649497986,
"w": 0.7429875135421753
},
"cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false,
"hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData"
},
{
"startInterfaceName": "",
"endInterfaceName": "",
"startConnectionPointPosition": {
"x": -1.250161051750183,
"y": -0.3160459101200104,
"z": 0.09028154611587525
},
"endConnectionPointPosition": {
"x": -1.250161051750183,
"y": -0.2582668662071228,
"z": 0.08528154343366623
},
"startPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"endPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"wireName": "Wire_20251126174814",
"cylinderScale": {
"x": 0.0020000000949949028,
"y": 0.028889521956443788,
"z": 0.0020000000949949028
},
"cylinderPosition": {
"x": -1.250161051750183,
"y": -0.2871564030647278,
"z": 0.08528154343366623
},
"cylinderRotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 1.0
},
"cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false,
"hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData"
},
{
"startInterfaceName": "",
"endInterfaceName": "",
"startConnectionPointPosition": {
"x": -1.250161051750183,
"y": -0.2582668662071228,
"z": 0.09028154611587525
},
"endConnectionPointPosition": {
"x": -1.3185701370239258,
"y": -0.2905614376068115,
"z": 0.08528154343366623
},
"startPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"endPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"wireName": "Wire_20251126174816",
"cylinderScale": {
"x": 0.0020000000949949028,
"y": 0.03782440349459648,
"z": 0.0020000000949949028
},
"cylinderPosition": {
"x": -1.2843656539916993,
"y": -0.27441415190696719,
"z": 0.08528154343366623
},
"cylinderRotation": {
"x": 0.0,
"y": 0.0,
"z": 0.8446600437164307,
"w": 0.5353030562400818
},
"cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false,
"hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData"
},
{
"startInterfaceName": "",
"endInterfaceName": "",
"startConnectionPointPosition": {
"x": -1.3185701370239258,
"y": -0.2905614376068115,
"z": 0.09028154611587525
},
"endConnectionPointPosition": {
"x": -1.406347632408142,
"y": -0.3217931091785431,
"z": 0.08528154343366623
},
"startPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"endPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"wireName": "Wire_20251126174817",
"cylinderScale": {
"x": 0.0020000000949949028,
"y": 0.046584080904722217,
"z": 0.0020000000949949028
},
"cylinderPosition": {
"x": -1.3624589443206788,
"y": -0.3061772584915161,
"z": 0.08528154343366623
},
"cylinderRotation": {
"x": 0.0,
"y": 0.0,
"z": 0.8170735239982605,
"w": 0.5765335559844971
},
"cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false,
"hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData"
},
{
"startInterfaceName": "",
"endInterfaceName": "",
"startConnectionPointPosition": {
"x": -1.406347632408142,
"y": -0.3217931091785431,
"z": 0.09028154611587525
},
"endConnectionPointPosition": {
"x": -1.3627458810806275,
"y": -0.32740670442581179,
"z": 0.08528154343366623
},
"startPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"endPoint": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"wireName": "Wire_20251126174818",
"cylinderScale": {
"x": 0.0020000000949949028,
"y": 0.02198081649839878,
"z": 0.0020000000949949028
},
"cylinderPosition": {
"x": -1.3845467567443848,
"y": -0.3245999217033386,
"z": 0.08528154343366623
},
"cylinderRotation": {
"x": 0.0,
"y": 0.0,
"z": -0.7508971691131592,
"w": 0.6604191660881043
},
"cylinderRadius": 0.0020000000949949028,
"hasStartInterface": false,
"hasEndInterface": false,
"debugInfo": "从 CylinderWireData 组件获取",
"wireType": "CylinderWireData"
} }
], ],
"wireCount": 12, "wireCount": 5,
"sceneName": "xianchang" "sceneName": "xianchang"
} }