20201120材质修改4
This commit is contained in:
parent
86391940a6
commit
830b325713
|
@ -218,7 +218,7 @@ MeshRenderer:
|
||||||
m_RendererPriority: 0
|
m_RendererPriority: 0
|
||||||
m_Materials:
|
m_Materials:
|
||||||
- {fileID: 2100000, guid: 923f7ec07b3bdbc488fbefc389cb8ee7, type: 2}
|
- {fileID: 2100000, guid: 923f7ec07b3bdbc488fbefc389cb8ee7, type: 2}
|
||||||
- {fileID: 2100000, guid: ab21ec9e6cb600643865a0c21468c1b7, type: 2}
|
- {fileID: 2100000, guid: 341de6c1a700fd14aacf3cdc10ab7152, type: 2}
|
||||||
m_StaticBatchInfo:
|
m_StaticBatchInfo:
|
||||||
firstSubMesh: 0
|
firstSubMesh: 0
|
||||||
subMeshCount: 0
|
subMeshCount: 0
|
||||||
|
@ -1908,7 +1908,7 @@ MeshRenderer:
|
||||||
m_RendererPriority: 0
|
m_RendererPriority: 0
|
||||||
m_Materials:
|
m_Materials:
|
||||||
- {fileID: 2100000, guid: 923f7ec07b3bdbc488fbefc389cb8ee7, type: 2}
|
- {fileID: 2100000, guid: 923f7ec07b3bdbc488fbefc389cb8ee7, type: 2}
|
||||||
- {fileID: 2100000, guid: 341de6c1a700fd14aacf3cdc10ab7152, type: 2}
|
- {fileID: 2100000, guid: ab21ec9e6cb600643865a0c21468c1b7, type: 2}
|
||||||
m_StaticBatchInfo:
|
m_StaticBatchInfo:
|
||||||
firstSubMesh: 0
|
firstSubMesh: 0
|
||||||
subMeshCount: 0
|
subMeshCount: 0
|
||||||
|
|
|
@ -18269,8 +18269,8 @@ LineRenderer:
|
||||||
m_SortingLayer: 0
|
m_SortingLayer: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
m_Positions:
|
m_Positions:
|
||||||
- {x: 4.125517, y: 1.099105, z: -13.231124}
|
- {x: 4.1387935, y: 1.099105, z: -13.244168}
|
||||||
- {x: 4.191237, y: 1.099105, z: -13.23112}
|
- {x: 4.191237, y: 1.099105, z: -13.244164}
|
||||||
- {x: 4.191237, y: 1.099105, z: -13.447843}
|
- {x: 4.191237, y: 1.099105, z: -13.447843}
|
||||||
- {x: 4.191237, y: -0.2364165, z: -13.447843}
|
- {x: 4.191237, y: -0.2364165, z: -13.447843}
|
||||||
- {x: 8.607809, y: -0.23641652, z: -13.44809}
|
- {x: 8.607809, y: -0.23641652, z: -13.44809}
|
||||||
|
@ -19353,8 +19353,8 @@ MonoBehaviour:
|
||||||
m_TargetGraphic: {fileID: 59510595}
|
m_TargetGraphic: {fileID: 59510595}
|
||||||
m_HandleRect: {fileID: 59510594}
|
m_HandleRect: {fileID: 59510594}
|
||||||
m_Direction: 2
|
m_Direction: 2
|
||||||
m_Value: -0.23728813
|
m_Value: -0.26495728
|
||||||
m_Size: 0.9999919
|
m_Size: 0.99999195
|
||||||
m_NumberOfSteps: 0
|
m_NumberOfSteps: 0
|
||||||
m_OnValueChanged:
|
m_OnValueChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
|
@ -20560,7 +20560,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 1}
|
m_AnchorMin: {x: 0.5, y: 1}
|
||||||
m_AnchorMax: {x: 0.5, y: 1}
|
m_AnchorMax: {x: 0.5, y: 1}
|
||||||
m_AnchoredPosition: {x: 0.0625, y: 0.0044862647}
|
m_AnchoredPosition: {x: 781469600, y: 0.0045641917}
|
||||||
m_SizeDelta: {x: 318.95, y: 443.74}
|
m_SizeDelta: {x: 318.95, y: 443.74}
|
||||||
m_Pivot: {x: 0.5, y: 1}
|
m_Pivot: {x: 0.5, y: 1}
|
||||||
--- !u!114 &413199003
|
--- !u!114 &413199003
|
||||||
|
@ -40651,8 +40651,8 @@ LineRenderer:
|
||||||
m_SortingLayer: 0
|
m_SortingLayer: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
m_Positions:
|
m_Positions:
|
||||||
- {x: 4.125517, y: 1.0982645, z: -13.008191}
|
- {x: 4.1399136, y: 1.0982645, z: -13.023589}
|
||||||
- {x: 4.235695, y: 1.0982645, z: -13.00819}
|
- {x: 4.235695, y: 1.0982645, z: -13.023588}
|
||||||
- {x: 4.2426286, y: 1.0982645, z: -12.820676}
|
- {x: 4.2426286, y: 1.0982645, z: -12.820676}
|
||||||
- {x: 4.2426286, y: -0.2364165, z: -12.82763}
|
- {x: 4.2426286, y: -0.2364165, z: -12.82763}
|
||||||
- {x: 8.387253, y: -0.23641652, z: -12.84801}
|
- {x: 8.387253, y: -0.23641652, z: -12.84801}
|
||||||
|
@ -83838,8 +83838,8 @@ MonoBehaviour:
|
||||||
m_TargetGraphic: {fileID: 1327205619}
|
m_TargetGraphic: {fileID: 1327205619}
|
||||||
m_HandleRect: {fileID: 1327205618}
|
m_HandleRect: {fileID: 1327205618}
|
||||||
m_Direction: 0
|
m_Direction: 0
|
||||||
m_Value: -22.005495
|
m_Value: -742323600
|
||||||
m_Size: 0.9999913
|
m_Size: 0.9967102
|
||||||
m_NumberOfSteps: 0
|
m_NumberOfSteps: 0
|
||||||
m_OnValueChanged:
|
m_OnValueChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
|
@ -93434,7 +93434,7 @@ PrefabInstance:
|
||||||
- target: {fileID: 2884839113879379249, guid: 9235652616e46ef4d985723222cde70b,
|
- target: {fileID: 2884839113879379249, guid: 9235652616e46ef4d985723222cde70b,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: 0
|
value: 0.0207
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2884839113879379249, guid: 9235652616e46ef4d985723222cde70b,
|
- target: {fileID: 2884839113879379249, guid: 9235652616e46ef4d985723222cde70b,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
@ -93444,7 +93444,7 @@ PrefabInstance:
|
||||||
- target: {fileID: 2884839113879379249, guid: 9235652616e46ef4d985723222cde70b,
|
- target: {fileID: 2884839113879379249, guid: 9235652616e46ef4d985723222cde70b,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0
|
value: -0.0156
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2884839113879379249, guid: 9235652616e46ef4d985723222cde70b,
|
- target: {fileID: 2884839113879379249, guid: 9235652616e46ef4d985723222cde70b,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
|
@ -1,114 +0,0 @@
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using Unity.VisualScripting;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
public class tooltest : MonoBehaviour
|
|
||||||
{
|
|
||||||
|
|
||||||
public Transform a;
|
|
||||||
public Transform b;
|
|
||||||
public List<Transform> A;
|
|
||||||
public List<Transform> B;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
[ContextMenu("粘贴5个脚本(设备)")]
|
|
||||||
public void Replace5()
|
|
||||||
{
|
|
||||||
var b1 = b.AddComponent<DeviceQuery>();
|
|
||||||
var b2 = b.AddComponent<DragTest>();
|
|
||||||
var b3 = b.AddComponent<TmsAlarmQuery>();
|
|
||||||
var b4 = b.AddComponent<TransparentGlow>();
|
|
||||||
var b5 = b.AddComponent<DragTest1>();
|
|
||||||
|
|
||||||
UnityEditorInternal.ComponentUtility.CopyComponent(a.GetComponent<DeviceQuery>());
|
|
||||||
UnityEditorInternal.ComponentUtility.PasteComponentValues(b1);
|
|
||||||
|
|
||||||
UnityEditorInternal.ComponentUtility.CopyComponent(a.GetComponent<DragTest>());
|
|
||||||
UnityEditorInternal.ComponentUtility.PasteComponentValues(b2);
|
|
||||||
|
|
||||||
UnityEditorInternal.ComponentUtility.CopyComponent(a.GetComponent<TmsAlarmQuery>());
|
|
||||||
UnityEditorInternal.ComponentUtility.PasteComponentValues(b3);
|
|
||||||
|
|
||||||
UnityEditorInternal.ComponentUtility.CopyComponent(a.GetComponent<TransparentGlow>());
|
|
||||||
UnityEditorInternal.ComponentUtility.PasteComponentValues(b4);
|
|
||||||
|
|
||||||
UnityEditorInternal.ComponentUtility.CopyComponent(a.GetComponent<DragTest1>());
|
|
||||||
UnityEditorInternal.ComponentUtility.PasteComponentValues(b5);
|
|
||||||
|
|
||||||
if (!b.GetComponent<MeshCollider>()) b.AddComponent<MeshCollider>();
|
|
||||||
}
|
|
||||||
|
|
||||||
[ContextMenu("-----------------------------------------------------------------")]
|
|
||||||
[ContextMenu("粘贴4个脚本(板卡)")]
|
|
||||||
public void Replace4()
|
|
||||||
{
|
|
||||||
for (int i = 0; i < A.Count; i++)
|
|
||||||
{
|
|
||||||
var b1 = B[i].AddComponent<DeviceQuery>();
|
|
||||||
//var b2 = B.AddComponent<DragTest>();
|
|
||||||
var b3 = B[i].AddComponent<TmsAlarmQuery>();
|
|
||||||
var b4 = B[i].AddComponent<TransparentGlow>();
|
|
||||||
//var b5 = B.AddComponent<DragTest1>();
|
|
||||||
var b6 = B[i].AddComponent<ClickEvent>();
|
|
||||||
|
|
||||||
UnityEditorInternal.ComponentUtility.CopyComponent(A[i].GetComponent<DeviceQuery>());
|
|
||||||
UnityEditorInternal.ComponentUtility.PasteComponentValues(b1);
|
|
||||||
|
|
||||||
//UnityEditorInternal.ComponentUtility.CopyComponent(A.GetComponent<DragTest>());
|
|
||||||
//UnityEditorInternal.ComponentUtility.PasteComponentValues(b2);
|
|
||||||
|
|
||||||
UnityEditorInternal.ComponentUtility.CopyComponent(A[i].GetComponent<TmsAlarmQuery>());
|
|
||||||
UnityEditorInternal.ComponentUtility.PasteComponentValues(b3);
|
|
||||||
|
|
||||||
UnityEditorInternal.ComponentUtility.CopyComponent(A[i].GetComponent<TransparentGlow>());
|
|
||||||
UnityEditorInternal.ComponentUtility.PasteComponentValues(b4);
|
|
||||||
|
|
||||||
//UnityEditorInternal.ComponentUtility.CopyComponent(A.GetComponent<DragTest1>());
|
|
||||||
//UnityEditorInternal.ComponentUtility.PasteComponentValues(b5);
|
|
||||||
|
|
||||||
UnityEditorInternal.ComponentUtility.CopyComponent(A[i].GetComponent<ClickEvent>());
|
|
||||||
UnityEditorInternal.ComponentUtility.PasteComponentValues(b6);
|
|
||||||
|
|
||||||
if (!B[i].GetComponent<MeshCollider>()) B[i].AddComponent<MeshCollider>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[ContextMenu("-----------------------------------------------------------------")]
|
|
||||||
[ContextMenu("粘贴2个脚本(端口)")]
|
|
||||||
public void Replace2()
|
|
||||||
{
|
|
||||||
for (int i = 0; i < A.Count; i++)
|
|
||||||
{
|
|
||||||
PortQuery b1 = B[i].AddComponent<PortQuery>();
|
|
||||||
//var b2= B[i].AddComponent<>
|
|
||||||
UnityEditorInternal.ComponentUtility.CopyComponent(A[i].GetComponent<PortQuery>());
|
|
||||||
UnityEditorInternal.ComponentUtility.PasteComponentValues(b1);
|
|
||||||
B[i].position = A[i].position;
|
|
||||||
B[i].gameObject.layer = 11;
|
|
||||||
B[i].GetComponent<PortQuery>().portList.portPosition = (i + 1).ToString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[ContextMenu("端口位置排序")]
|
|
||||||
public void Replace2_()
|
|
||||||
{
|
|
||||||
for (int i = 0; i < B.Count; i++)
|
|
||||||
{
|
|
||||||
var b1 = B[i].GetComponent<PortQuery>();
|
|
||||||
b1.portList.portPosition = (i + 1).ToString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: 08598a3519fbad24195f9a93c4b44600
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
Loading…
Reference in New Issue