浮标点和相机停靠点外置,用resources加载图片,删除脚本文件夹分类
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,19 @@
|
|||||||
"RelativeMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\icons\\askforwebinfomation.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
"RelativeMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\icons\\askforwebinfomation.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"AbsoluteMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|d:\\unitydata\\git\u7248\u672C\\3d-fengji\\assets\\scripts\\icons\\fastslowanimationandzoomin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
"AbsoluteMoniker": "D:0:0:{F9B788D1-9D9E-3556-0807-B70711B56A75}|Assembly-CSharp-Editor.csproj|D:\\unityData\\Git\u7248\u672C\\3d-fengji\\assets\\editor\\debugtools.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{F9B788D1-9D9E-3556-0807-B70711B56A75}|Assembly-CSharp-Editor.csproj|solutionrelative:assets\\editor\\debugtools.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|D:\\unityData\\Git\u7248\u672C\\3d-fengji\\assets\\scripts\\maincamera\\doubleclicktofocus.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\maincamera\\doubleclicktofocus.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|D:\\unityData\\Git\u7248\u672C\\3d-fengji\\assets\\scripts\\sortingicons\\displaychosenicons.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\sortingicons\\displaychosenicons.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|D:\\unityData\\Git\u7248\u672C\\3d-fengji\\assets\\scripts\\icons\\fastslowanimationandzoomin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
"RelativeMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\icons\\fastslowanimationandzoomin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
"RelativeMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\icons\\fastslowanimationandzoomin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -18,12 +30,36 @@
|
|||||||
"DocumentGroups": [
|
"DocumentGroups": [
|
||||||
{
|
{
|
||||||
"DockedWidth": 200,
|
"DockedWidth": 200,
|
||||||
"SelectedChildIndex": 1,
|
"SelectedChildIndex": 3,
|
||||||
"Children": [
|
"Children": [
|
||||||
{
|
{
|
||||||
"$type": "Bookmark",
|
"$type": "Bookmark",
|
||||||
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
|
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 3,
|
||||||
|
"Title": "DisplayChosenIcons.cs",
|
||||||
|
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\SortingIcons\\DisplayChosenIcons.cs",
|
||||||
|
"RelativeDocumentMoniker": "Assets\\Scripts\\SortingIcons\\DisplayChosenIcons.cs",
|
||||||
|
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\SortingIcons\\DisplayChosenIcons.cs",
|
||||||
|
"RelativeToolTip": "Assets\\Scripts\\SortingIcons\\DisplayChosenIcons.cs",
|
||||||
|
"ViewState": "AgIAAGQAAAAAAAAAAAAUwAkAAAAOAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2026-07-11T00:57:55.753Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 2,
|
||||||
|
"Title": "DoubleClickToFocus.cs",
|
||||||
|
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\MainCamera\\DoubleClickToFocus.cs",
|
||||||
|
"RelativeDocumentMoniker": "Assets\\Scripts\\MainCamera\\DoubleClickToFocus.cs",
|
||||||
|
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\MainCamera\\DoubleClickToFocus.cs",
|
||||||
|
"RelativeToolTip": "Assets\\Scripts\\MainCamera\\DoubleClickToFocus.cs",
|
||||||
|
"ViewState": "AgIAAK8AAAAAAAAAAAAAwKIAAABEAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2026-07-11T00:37:20.467Z"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$type": "Document",
|
"$type": "Document",
|
||||||
"DocumentIndex": 0,
|
"DocumentIndex": 0,
|
||||||
@@ -32,23 +68,34 @@
|
|||||||
"RelativeDocumentMoniker": "Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
"RelativeDocumentMoniker": "Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
||||||
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
||||||
"RelativeToolTip": "Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
"RelativeToolTip": "Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
||||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAANgBAAABAAAAAAAAAA==",
|
"ViewState": "AgIAAPcAAAAAAAAAAAAmwEsAAACJAAAAAAAAAA==",
|
||||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
"WhenOpened": "2026-07-10T06:56:30.878Z",
|
"WhenOpened": "2026-07-10T06:56:30.878Z",
|
||||||
"EditorCaption": ""
|
"EditorCaption": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$type": "Document",
|
"$type": "Document",
|
||||||
"DocumentIndex": 1,
|
"DocumentIndex": 4,
|
||||||
"Title": "FastSlowAnimationANDZoomIN.cs",
|
"Title": "FastSlowAnimationANDZoomIN.cs",
|
||||||
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
||||||
"RelativeDocumentMoniker": "Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
"RelativeDocumentMoniker": "Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
||||||
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
||||||
"RelativeToolTip": "Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
"RelativeToolTip": "Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
||||||
"ViewState": "AgIAABEAAAAAAAAAAADwvx4AAAAVAAAAAAAAAA==",
|
"ViewState": "AgIAAA4AAAAAAAAAAADwv0UAAAABAAAAAAAAAA==",
|
||||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
"WhenOpened": "2026-07-10T06:54:03.181Z",
|
"WhenOpened": "2026-07-10T06:54:03.181Z"
|
||||||
"EditorCaption": ""
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 1,
|
||||||
|
"Title": "DebugTools.cs",
|
||||||
|
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Editor\\DebugTools.cs",
|
||||||
|
"RelativeDocumentMoniker": "Assets\\Editor\\DebugTools.cs",
|
||||||
|
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Editor\\DebugTools.cs",
|
||||||
|
"RelativeToolTip": "Assets\\Editor\\DebugTools.cs",
|
||||||
|
"ViewState": "AgIAAJgAAAAAAAAAAAAuwLMAAAAJAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2026-07-11T00:32:29.495Z"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,12 +3,24 @@
|
|||||||
"WorkspaceRootPath": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\",
|
"WorkspaceRootPath": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\",
|
||||||
"Documents": [
|
"Documents": [
|
||||||
{
|
{
|
||||||
"AbsoluteMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|D:\\unityData\\Git\u7248\u672C\\3d-fengji\\assets\\scripts\\icons\\fastslowanimationandzoomin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|d:\\unitydata\\git\u7248\u672C\\3d-fengji\\assets\\scripts\\icons\\askforwebinfomation.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
"RelativeMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\icons\\fastslowanimationandzoomin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:assets\\scripts\\icons\\askforwebinfomation.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"AbsoluteMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|d:\\unitydata\\git\u7248\u672C\\3d-fengji\\assets\\scripts\\icons\\askforwebinfomation.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
"AbsoluteMoniker": "D:0:0:{F9B788D1-9D9E-3556-0807-B70711B56A75}|Assembly-CSharp-Editor.csproj|D:\\unityData\\Git\u7248\u672C\\3d-fengji\\assets\\editor\\debugtools.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
"RelativeMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\icons\\askforwebinfomation.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
"RelativeMoniker": "D:0:0:{F9B788D1-9D9E-3556-0807-B70711B56A75}|Assembly-CSharp-Editor.csproj|solutionrelative:assets\\editor\\debugtools.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|D:\\unityData\\Git\u7248\u672C\\3d-fengji\\assets\\scripts\\maincamera\\doubleclicktofocus.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\maincamera\\doubleclicktofocus.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|D:\\unityData\\Git\u7248\u672C\\3d-fengji\\assets\\scripts\\sortingicons\\displaychosenicons.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\sortingicons\\displaychosenicons.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|D:\\unityData\\Git\u7248\u672C\\3d-fengji\\assets\\scripts\\icons\\fastslowanimationandzoomin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\icons\\fastslowanimationandzoomin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"DocumentGroupContainers": [
|
"DocumentGroupContainers": [
|
||||||
@@ -18,7 +30,7 @@
|
|||||||
"DocumentGroups": [
|
"DocumentGroups": [
|
||||||
{
|
{
|
||||||
"DockedWidth": 200,
|
"DockedWidth": 200,
|
||||||
"SelectedChildIndex": 2,
|
"SelectedChildIndex": 3,
|
||||||
"Children": [
|
"Children": [
|
||||||
{
|
{
|
||||||
"$type": "Bookmark",
|
"$type": "Bookmark",
|
||||||
@@ -26,20 +38,44 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$type": "Document",
|
"$type": "Document",
|
||||||
"DocumentIndex": 1,
|
"DocumentIndex": 3,
|
||||||
|
"Title": "DisplayChosenIcons.cs",
|
||||||
|
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\SortingIcons\\DisplayChosenIcons.cs",
|
||||||
|
"RelativeDocumentMoniker": "Assets\\Scripts\\SortingIcons\\DisplayChosenIcons.cs",
|
||||||
|
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\SortingIcons\\DisplayChosenIcons.cs",
|
||||||
|
"RelativeToolTip": "Assets\\Scripts\\SortingIcons\\DisplayChosenIcons.cs",
|
||||||
|
"ViewState": "AgIAAGQAAAAAAAAAAAAUwAkAAAAOAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2026-07-11T00:57:55.753Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 2,
|
||||||
|
"Title": "DoubleClickToFocus.cs",
|
||||||
|
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\MainCamera\\DoubleClickToFocus.cs",
|
||||||
|
"RelativeDocumentMoniker": "Assets\\Scripts\\MainCamera\\DoubleClickToFocus.cs",
|
||||||
|
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\MainCamera\\DoubleClickToFocus.cs",
|
||||||
|
"RelativeToolTip": "Assets\\Scripts\\MainCamera\\DoubleClickToFocus.cs",
|
||||||
|
"ViewState": "AgIAAK8AAAAAAAAAAAAAwKIAAABEAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2026-07-11T00:37:20.467Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 0,
|
||||||
"Title": "AskForWEBInfomation.cs",
|
"Title": "AskForWEBInfomation.cs",
|
||||||
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
||||||
"RelativeDocumentMoniker": "Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
"RelativeDocumentMoniker": "Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
||||||
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
||||||
"RelativeToolTip": "Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
"RelativeToolTip": "Assets\\Scripts\\ICONS\\AskForWEBInfomation.cs",
|
||||||
"ViewState": "AgIAACkAAAAAAAAAAAAQwNgBAAABAAAAAAAAAA==",
|
"ViewState": "AgIAAPcAAAAAAAAAAAAmwEsAAACJAAAAAAAAAA==",
|
||||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
"WhenOpened": "2026-07-10T06:56:30.878Z",
|
"WhenOpened": "2026-07-10T06:56:30.878Z",
|
||||||
"EditorCaption": ""
|
"EditorCaption": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$type": "Document",
|
"$type": "Document",
|
||||||
"DocumentIndex": 0,
|
"DocumentIndex": 4,
|
||||||
"Title": "FastSlowAnimationANDZoomIN.cs",
|
"Title": "FastSlowAnimationANDZoomIN.cs",
|
||||||
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
||||||
"RelativeDocumentMoniker": "Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
"RelativeDocumentMoniker": "Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
||||||
@@ -47,8 +83,19 @@
|
|||||||
"RelativeToolTip": "Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
"RelativeToolTip": "Assets\\Scripts\\ICONS\\FastSlowAnimationANDZoomIN.cs",
|
||||||
"ViewState": "AgIAAA4AAAAAAAAAAADwv0UAAAABAAAAAAAAAA==",
|
"ViewState": "AgIAAA4AAAAAAAAAAADwv0UAAAABAAAAAAAAAA==",
|
||||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
"WhenOpened": "2026-07-10T06:54:03.181Z",
|
"WhenOpened": "2026-07-10T06:54:03.181Z"
|
||||||
"EditorCaption": ""
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 1,
|
||||||
|
"Title": "DebugTools.cs",
|
||||||
|
"DocumentMoniker": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Editor\\DebugTools.cs",
|
||||||
|
"RelativeDocumentMoniker": "Assets\\Editor\\DebugTools.cs",
|
||||||
|
"ToolTip": "D:\\unityData\\Git\u7248\u672C\\3d-fengji\\Assets\\Editor\\DebugTools.cs",
|
||||||
|
"RelativeToolTip": "Assets\\Editor\\DebugTools.cs",
|
||||||
|
"ViewState": "AgIAAJgAAAAAAAAAAAAuwLMAAAAJAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2026-07-11T00:32:29.495Z"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio 15
|
# Visual Studio 15
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Enviro3.Editor", "Enviro3.Editor.csproj", "{73D96162-AA87-E3EB-67D0-CFA8AA2A2806}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Enviro3.Editor", "Enviro3.Editor.csproj", "{73D96162-AA87-E3EB-67D0-CFA8AA2A2806}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Enviro3.Runtime", "Enviro3.Runtime.csproj", "{7C998988-61F2-7AF1-0A5D-CFA20D6661AE}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Enviro3.Runtime", "Enviro3.Runtime.csproj", "{7C998988-61F2-7AF1-0A5D-CFA20D6661AE}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}"
|
||||||
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor", "Assembly-CSharp-Editor.csproj", "{F9B788D1-9D9E-3556-0807-B70711B56A75}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor", "Assembly-CSharp-Editor.csproj", "{F9B788D1-9D9E-3556-0807-B70711B56A75}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
@@ -19,14 +19,14 @@ Global
|
|||||||
{73D96162-AA87-E3EB-67D0-CFA8AA2A2806}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{73D96162-AA87-E3EB-67D0-CFA8AA2A2806}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{73D96162-AA87-E3EB-67D0-CFA8AA2A2806}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{73D96162-AA87-E3EB-67D0-CFA8AA2A2806}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{73D96162-AA87-E3EB-67D0-CFA8AA2A2806}.Release|Any CPU.Build.0 = Release|Any CPU
|
{73D96162-AA87-E3EB-67D0-CFA8AA2A2806}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{7C998988-61F2-7AF1-0A5D-CFA20D6661AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{7C998988-61F2-7AF1-0A5D-CFA20D6661AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{7C998988-61F2-7AF1-0A5D-CFA20D6661AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{7C998988-61F2-7AF1-0A5D-CFA20D6661AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{7C998988-61F2-7AF1-0A5D-CFA20D6661AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{7C998988-61F2-7AF1-0A5D-CFA20D6661AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{7C998988-61F2-7AF1-0A5D-CFA20D6661AE}.Release|Any CPU.Build.0 = Release|Any CPU
|
{7C998988-61F2-7AF1-0A5D-CFA20D6661AE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{E01BD8B3-55E8-74DB-B103-CC292D26A5E4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{F9B788D1-9D9E-3556-0807-B70711B56A75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{F9B788D1-9D9E-3556-0807-B70711B56A75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{F9B788D1-9D9E-3556-0807-B70711B56A75}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{F9B788D1-9D9E-3556-0807-B70711B56A75}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{F9B788D1-9D9E-3556-0807-B70711B56A75}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{F9B788D1-9D9E-3556-0807-B70711B56A75}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
|||||||
@@ -60,36 +60,33 @@
|
|||||||
<Analyzer Include="E:\unityEDITOR\2022.3.62f3c1\Editor\Data\Tools\Unity.SourceGenerators\Unity.Properties.SourceGenerator.dll" />
|
<Analyzer Include="E:\unityEDITOR\2022.3.62f3c1\Editor\Data\Tools\Unity.SourceGenerators\Unity.Properties.SourceGenerator.dll" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Assets\Scripts\Environ3\WeatherAndTime.cs" />
|
<Compile Include="Assets\Scripts\ControlMoving.cs" />
|
||||||
<Compile Include="Assets\Enviro 3 - Sky and Weather\Scripts\ThirdPartySupport\Photon\EnviroPhotonIntegration.cs" />
|
<Compile Include="Assets\Enviro 3 - Sky and Weather\Scripts\ThirdPartySupport\Photon\EnviroPhotonIntegration.cs" />
|
||||||
<Compile Include="Assets\Scripts\SingleInstanceMode\BaseMgr.cs" />
|
|
||||||
<Compile Include="Assets\Enviro 3 - Sky and Weather\Scripts\ThirdPartySupport\Mirror\EnviroMirrorServer.cs" />
|
<Compile Include="Assets\Enviro 3 - Sky and Weather\Scripts\ThirdPartySupport\Mirror\EnviroMirrorServer.cs" />
|
||||||
<Compile Include="Assets\Scripts\WorkerCamera\LookAtWorkerCam.cs" />
|
|
||||||
<Compile Include="Assets\Scripts\MainCamera\ControlMoving.cs" />
|
|
||||||
<Compile Include="Assets\Enviro 3 - Sky and Weather\Sample\Scripts\UISample.cs" />
|
<Compile Include="Assets\Enviro 3 - Sky and Weather\Sample\Scripts\UISample.cs" />
|
||||||
<Compile Include="Assets\Enviro 3 - Sky and Weather\Scripts\ThirdPartySupport\WAPI\EnviroWorldAPI.cs" />
|
<Compile Include="Assets\Enviro 3 - Sky and Weather\Scripts\ThirdPartySupport\WAPI\EnviroWorldAPI.cs" />
|
||||||
<Compile Include="Assets\Scripts\ICONS\AskForWEBInfomation.cs" />
|
<Compile Include="Assets\Scripts\ControlMovingAndAnimation.cs" />
|
||||||
<Compile Include="Assets\Scripts\DisplayData_MainCamera\MouseSuspensionOneSecond.cs" />
|
|
||||||
<Compile Include="Assets\Enviro 3 - Sky and Weather\Sample\Scripts\EventTest.cs" />
|
<Compile Include="Assets\Enviro 3 - Sky and Weather\Sample\Scripts\EventTest.cs" />
|
||||||
<Compile Include="Assets\Scripts\AudioManage\Mute.cs" />
|
<Compile Include="Assets\Scripts\LookAtWorkerCam.cs" />
|
||||||
<Compile Include="Assets\Scripts\SortingIcons\DisplayChosenIcons.cs" />
|
<Compile Include="Assets\Scripts\DisplayChosenIcons.cs" />
|
||||||
<Compile Include="Assets\Scripts\MainCamera\DoubleClickToFocus.cs" />
|
<Compile Include="Assets\Scripts\DoubleClickToFocus.cs" />
|
||||||
<Compile Include="Assets\Scripts\UIManager\UIManager.cs" />
|
|
||||||
<Compile Include="Assets\Scripts\LightManager\LightManager.cs" />
|
|
||||||
<Compile Include="Assets\Scripts\Sluices\ModifySluiceHeightManually.cs" />
|
|
||||||
<Compile Include="Assets\shu\xds1\AssetVersion_xds1.cs" />
|
<Compile Include="Assets\shu\xds1\AssetVersion_xds1.cs" />
|
||||||
<Compile Include="Assets\Scripts\Sluices\OneKeyOperation.cs" />
|
<Compile Include="Assets\Scripts\MouseSuspensionOneSecond.cs" />
|
||||||
<Compile Include="Assets\Enviro 3 - Sky and Weather\Scripts\ThirdPartySupport\Mirror\EnviroMirrorPlayer.cs" />
|
<Compile Include="Assets\Enviro 3 - Sky and Weather\Scripts\ThirdPartySupport\Mirror\EnviroMirrorPlayer.cs" />
|
||||||
|
<Compile Include="Assets\Scripts\BaseMgr.cs" />
|
||||||
|
<Compile Include="Assets\Scripts\FastSlowAnimationANDZoomIN.cs" />
|
||||||
|
<Compile Include="Assets\Scripts\Mute.cs" />
|
||||||
<Compile Include="Assets\shu\jgs4\AssetVersion_jgs4.cs" />
|
<Compile Include="Assets\shu\jgs4\AssetVersion_jgs4.cs" />
|
||||||
<Compile Include="Assets\Scripts\ICONS\FastSlowAnimationANDZoomIN.cs" />
|
<Compile Include="Assets\Scripts\WeatherAndTime.cs" />
|
||||||
<Compile Include="Assets\Scripts\Sluices\ConnectToRealSluicesHeight.cs" />
|
|
||||||
<Compile Include="Assets\Enviro 3 - Sky and Weather\Scripts\ThirdPartySupport\Microsplat\EnviroMicrosplatIntegration.cs" />
|
<Compile Include="Assets\Enviro 3 - Sky and Weather\Scripts\ThirdPartySupport\Microsplat\EnviroMicrosplatIntegration.cs" />
|
||||||
<Compile Include="Assets\Kevin Iglesias\Human Animations\Scripts\SpineProxy.cs" />
|
<Compile Include="Assets\Kevin Iglesias\Human Animations\Scripts\SpineProxy.cs" />
|
||||||
|
<Compile Include="Assets\Scripts\SkipUnitySplash.cs" />
|
||||||
<Compile Include="Assets\shu\jgs3\AssetVersion_jgs3.cs" />
|
<Compile Include="Assets\shu\jgs3\AssetVersion_jgs3.cs" />
|
||||||
|
<Compile Include="Assets\Scripts\LightManager.cs" />
|
||||||
<Compile Include="Assets\shu\jgs1\AssetVersion_jgs1.cs" />
|
<Compile Include="Assets\shu\jgs1\AssetVersion_jgs1.cs" />
|
||||||
<Compile Include="Assets\Scripts\SkipUnitySplash\SkipUnitySplash.cs" />
|
<Compile Include="Assets\Scripts\UIManager.cs" />
|
||||||
<Compile Include="Assets\Enviro 3 - Sky and Weather\Sample\Scripts\SimpleFlyController.cs" />
|
<Compile Include="Assets\Enviro 3 - Sky and Weather\Sample\Scripts\SimpleFlyController.cs" />
|
||||||
<Compile Include="Assets\Scripts\juese_chuangke260320\ControlMovingAndAnimation.cs" />
|
<Compile Include="Assets\Scripts\AskForWEBInfomation.cs" />
|
||||||
<Compile Include="Assets\shu\jgs2\AssetVersion_jgs2.cs" />
|
<Compile Include="Assets\shu\jgs2\AssetVersion_jgs2.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using UnityEngine;
|
|||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
public class DebugTools
|
public class DebugTools
|
||||||
{
|
{
|
||||||
// 切换天气
|
// 切换天气
|
||||||
[MenuItem("TestWeather/Sunny")]
|
[MenuItem("TestWeather/Sunny")]
|
||||||
static void Sunny()
|
static void Sunny()
|
||||||
{
|
{
|
||||||
@@ -52,7 +52,7 @@ public class DebugTools
|
|||||||
GameObject.Find("Enviro 3").GetComponent<WeatherAndTime>().Cloudy();
|
GameObject.Find("Enviro 3").GetComponent<WeatherAndTime>().Cloudy();
|
||||||
}
|
}
|
||||||
|
|
||||||
//切换时间
|
//切换时间
|
||||||
[MenuItem("TestTime/TwoOcloak")]
|
[MenuItem("TestTime/TwoOcloak")]
|
||||||
static void TwoOcloak()
|
static void TwoOcloak()
|
||||||
{
|
{
|
||||||
@@ -71,7 +71,7 @@ public class DebugTools
|
|||||||
GameObject.Find("Enviro 3").GetComponent<WeatherAndTime>().RealTime();
|
GameObject.Find("Enviro 3").GetComponent<WeatherAndTime>().RealTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
//声音控制
|
//声音控制
|
||||||
[MenuItem("AudioManage/Mute")]
|
[MenuItem("AudioManage/Mute")]
|
||||||
static void Mute()
|
static void Mute()
|
||||||
{
|
{
|
||||||
@@ -84,11 +84,11 @@ public class DebugTools
|
|||||||
GameObject.Find("AudioManage").GetComponent<Mute>().UnMute();
|
GameObject.Find("AudioManage").GetComponent<Mute>().UnMute();
|
||||||
}
|
}
|
||||||
|
|
||||||
//视角切换
|
//视角切换
|
||||||
[MenuItem("SwitchView/SwitchToWorkerView")]
|
[MenuItem("SwitchView/SwitchToWorkerView")]
|
||||||
static void SwitchToWorkerView()
|
static void SwitchToWorkerView()
|
||||||
{
|
{
|
||||||
//禁用游戏对象改为禁用组件
|
//禁用游戏对象改为禁用组件
|
||||||
GameObject.Find("Main Camera").GetComponent<Camera>().enabled = false;
|
GameObject.Find("Main Camera").GetComponent<Camera>().enabled = false;
|
||||||
GameObject.Find("Main Camera").GetComponent<ControlMoving>().enabled = false;
|
GameObject.Find("Main Camera").GetComponent<ControlMoving>().enabled = false;
|
||||||
GameObject.Find("Main Camera").GetComponent<DoubleClickToFocus>().enabled = false;
|
GameObject.Find("Main Camera").GetComponent<DoubleClickToFocus>().enabled = false;
|
||||||
@@ -101,13 +101,13 @@ public class DebugTools
|
|||||||
|
|
||||||
for (int i = 0; i < GameObject.Find("ICONS").transform.childCount; i++)
|
for (int i = 0; i < GameObject.Find("ICONS").transform.childCount; i++)
|
||||||
{
|
{
|
||||||
GameObject.Find("ICONS").transform.GetChild(i).transform.localScale = Vector3.one * 0.5f;//工人视角下重置大小
|
GameObject.Find("ICONS").transform.GetChild(i).transform.localScale = Vector3.one * 0.5f;//工人视角下重置大小
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[MenuItem("SwitchView/SwitchToFreeView")]
|
[MenuItem("SwitchView/SwitchToFreeView")]
|
||||||
static void SwitchToFreeView()
|
static void SwitchToFreeView()
|
||||||
{
|
{
|
||||||
//禁用游戏对象改为禁用组件
|
//禁用游戏对象改为禁用组件
|
||||||
GameObject.Find("Main Camera").GetComponent<Camera>().enabled = true;
|
GameObject.Find("Main Camera").GetComponent<Camera>().enabled = true;
|
||||||
GameObject.Find("Main Camera").GetComponent<ControlMoving>().enabled = true;
|
GameObject.Find("Main Camera").GetComponent<ControlMoving>().enabled = true;
|
||||||
GameObject.Find("Main Camera").GetComponent<DoubleClickToFocus>().enabled = true;
|
GameObject.Find("Main Camera").GetComponent<DoubleClickToFocus>().enabled = true;
|
||||||
@@ -119,4 +119,76 @@ public class DebugTools
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MenuItem("Copy/CopyPosition")]
|
||||||
|
|
||||||
|
static void CopyPosition()
|
||||||
|
{
|
||||||
|
|
||||||
|
PointPosInfo[] pointDataArray = new PointPosInfo[]
|
||||||
|
{
|
||||||
|
new PointPosInfo("sb_wuxianqingjiaoji001", new Vector3(-35.69f, 62.82f, -12.18f)),
|
||||||
|
new PointPosInfo("sb_wuxianqingjiaoji002", new Vector3(-39.52f, 62.94f, -14.66f)),
|
||||||
|
new PointPosInfo("sb_wuxianqingjiaoji003", new Vector3(-35.82f, 63f, -16.84f)),
|
||||||
|
new PointPosInfo("sb_wuxianqingjiaoji004", new Vector3(-121.8f, 18f, -74.3f)),
|
||||||
|
|
||||||
|
new PointPosInfo("sb_gnss001", new Vector3(-27.6f, 52f, -18.12f)),
|
||||||
|
new PointPosInfo("sb_gnss002", new Vector3(-68f, 20.6f, -60f)),
|
||||||
|
new PointPosInfo("sb_gnss003", new Vector3(-18.4f, 19.5f, -35f)),
|
||||||
|
new PointPosInfo("sb_gnss004", new Vector3(-28.8f, 20.4f, -23.5f)),
|
||||||
|
|
||||||
|
new PointPosInfo("sb_liefengji001", new Vector3(-82f, 17.87f, -70.26f)),
|
||||||
|
new PointPosInfo("sb_liefengji002", new Vector3(-70.2f, 18f, -58.4f)),
|
||||||
|
new PointPosInfo("sb_liefengji003", new Vector3(-55.84f, 18.145f, -47.3f)),
|
||||||
|
new PointPosInfo("sb_liefengji004", new Vector3(-42.8f, 18.25f, -35.47f)),
|
||||||
|
new PointPosInfo("sb_liefengji005", new Vector3(-30.5f, 18f, -22.5f)),
|
||||||
|
|
||||||
|
new PointPosInfo("sb_yachashi001", new Vector3(-25f, 50.28f, -17.22f)),
|
||||||
|
new PointPosInfo("sb_yachashi002", new Vector3(-36.94f, 50.28f, -10.91f)),
|
||||||
|
new PointPosInfo("sb_yachashi003", new Vector3(-36.97f, 50.28f, -18.37f)),
|
||||||
|
new PointPosInfo("sb_yachashi004", new Vector3(-33.5f, 50.28f, -14.65f)),
|
||||||
|
new PointPosInfo("sb_yachashi005", new Vector3(-40.59f, 50.28f, -14.65f)),
|
||||||
|
|
||||||
|
new PointPosInfo("sb_yingbianji001", new Vector3(-37.96f, 73.14f, -12f)),
|
||||||
|
new PointPosInfo("sb_yingbianji002", new Vector3(-39.83f, 73f, -14.74f)),
|
||||||
|
new PointPosInfo("sb_yingbianji003", new Vector3(-37.86f, 73f, -17f)),
|
||||||
|
new PointPosInfo("sb_yingbianji004", new Vector3(-35f, 73.14f, -16.23f)),
|
||||||
|
new PointPosInfo("sb_yingbianji005", new Vector3(-34.88f, 73f, -13.06f)),
|
||||||
|
|
||||||
|
new PointPosInfo("sb_fengjizhendong001", new Vector3(-34.38f, 118.09f, -14.05f)),
|
||||||
|
new PointPosInfo("sb_fengjizhendong002", new Vector3(-34.52f, 118.09f, -15.17f)),
|
||||||
|
|
||||||
|
new PointPosInfo("sb_yulaingji001", new Vector3(-103.65f, 29.63f, 125.45f)),
|
||||||
|
new PointPosInfo("sb_wenshiya001", new Vector3(-106.73f, 29.08f, 125.36f)),
|
||||||
|
new PointPosInfo("sb_qixiangfengxiang001", new Vector3(-105.29f, 29.16f, 127.22f)),
|
||||||
|
new PointPosInfo("sb_qixiangfengsu001", new Vector3(-104.87f, 29.06f, 123.55f)),
|
||||||
|
|
||||||
|
new PointPosInfo("全部ViewPort", new Vector3(16f, 113f, -167f)),
|
||||||
|
new PointPosInfo("沉降监测ViewPort", new Vector3(16f, 113f, -167f)),
|
||||||
|
new PointPosInfo("振动加速度ViewPort", new Vector3(16f, 113f, -167f)),
|
||||||
|
new PointPosInfo("应变监测ViewPort", new Vector3(16f, 113f, -167f)),
|
||||||
|
new PointPosInfo("裂缝监测ViewPort", new Vector3(16f, 113f, -167f)),
|
||||||
|
new PointPosInfo("倾角监测ViewPort", new Vector3(16f, 113f, -167f)),
|
||||||
|
new PointPosInfo("气象监测ViewPort", new Vector3(16f, 113f, -167f)),
|
||||||
|
new PointPosInfo("流量监测ViewPort", new Vector3(16f, 113f, -167f)),
|
||||||
|
};
|
||||||
|
foreach (var item in pointDataArray)
|
||||||
|
{
|
||||||
|
GameObject obj = new GameObject(item.SNWithdeviceName);
|
||||||
|
obj.transform.SetParent(GameObject.Find("CameraParkingPosition").transform);
|
||||||
|
obj.transform.position = item.localPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
struct PointPosInfo
|
||||||
|
{
|
||||||
|
public string SNWithdeviceName;
|
||||||
|
public Vector3 localPosition;
|
||||||
|
|
||||||
|
public PointPosInfo(string sn, Vector3 pos)
|
||||||
|
{
|
||||||
|
SNWithdeviceName = sn;
|
||||||
|
localPosition = pos;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,9 +132,9 @@ MonoBehaviour:
|
|||||||
preset: {fileID: 11400000, guid: 0fcdd472bd6a8ec429fc1e9bc978c4fa, type: 2}
|
preset: {fileID: 11400000, guid: 0fcdd472bd6a8ec429fc1e9bc978c4fa, type: 2}
|
||||||
showCirrusCloudsControls: 0
|
showCirrusCloudsControls: 0
|
||||||
show2DCloudsControls: 0
|
show2DCloudsControls: 0
|
||||||
cloudFlatBaseAnim: {x: 0.9380889, y: 0.780298}
|
cloudFlatBaseAnim: {x: 0.9975465, y: -0.18257013}
|
||||||
cloudFlatDetailAnim: {x: 0.3276365, y: 0.38179648}
|
cloudFlatDetailAnim: {x: 0.62491155, y: -0.4327759}
|
||||||
cirrusAnim: {x: -0.684717, y: 0.52665454}
|
cirrusAnim: {x: -0.6549902, y: -0.9547804}
|
||||||
--- !u!114 &-1033463005042072443
|
--- !u!114 &-1033463005042072443
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1884,7 +1884,7 @@ MonoBehaviour:
|
|||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
temperature: 22.883339
|
temperature: 22.882633
|
||||||
temperatureWeatherMod: 0
|
temperatureWeatherMod: 0
|
||||||
temperatureCustomMod: 0
|
temperatureCustomMod: 0
|
||||||
temperatureChangingSpeed: 0.1
|
temperatureChangingSpeed: 0.1
|
||||||
@@ -2151,9 +2151,9 @@ MonoBehaviour:
|
|||||||
showDensityControls: 1
|
showDensityControls: 1
|
||||||
showTextureControls: 0
|
showTextureControls: 0
|
||||||
showWindControls: 0
|
showWindControls: 0
|
||||||
cloudAnimLayer1: {x: 0.262046, y: -0.6489552, z: 0.73880184}
|
cloudAnimLayer1: {x: 0.55931807, y: 0.5367003, z: 0.7172115}
|
||||||
cloudAnimLayer2: {x: -0.4793451, y: 0.47841242, z: 0.015471124}
|
cloudAnimLayer2: {x: -0.4793451, y: 0.47841242, z: 0.015471124}
|
||||||
cloudAnimNonScaledLayer1: {x: 0.33003893, y: -1.0149741, z: -40.006607}
|
cloudAnimNonScaledLayer1: {x: 0.33236814, y: -0.97349286, z: -41.326866}
|
||||||
cloudAnimNonScaledLayer2: {x: -0.001515836, y: 0.0009908647, z: -0.28406617}
|
cloudAnimNonScaledLayer2: {x: -0.001515836, y: 0.0009908647, z: -0.28406617}
|
||||||
weatherMap: {fileID: 0}
|
weatherMap: {fileID: 0}
|
||||||
--- !u!114 &4011421771873438716
|
--- !u!114 &4011421771873438716
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: -40, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: -40, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: -30.781006, y: -2.4430053}
|
m_AnchoredPosition: {x: -30.781006, y: -2.4429932}
|
||||||
m_SizeDelta: {x: 2, y: 3}
|
m_SizeDelta: {x: 2, y: 3}
|
||||||
m_Pivot: {x: 0.5, y: 0}
|
m_Pivot: {x: 0.5, y: 0}
|
||||||
--- !u!223 &272338765191885033
|
--- !u!223 &272338765191885033
|
||||||
@@ -311,7 +311,7 @@ MonoBehaviour:
|
|||||||
m_FallbackScreenDPI: 96
|
m_FallbackScreenDPI: 96
|
||||||
m_DefaultSpriteDPI: 96
|
m_DefaultSpriteDPI: 96
|
||||||
m_DynamicPixelsPerUnit: 1
|
m_DynamicPixelsPerUnit: 1
|
||||||
m_PresetInfoIsWorld: 1
|
m_PresetInfoIsWorld: 0
|
||||||
--- !u!114 &1446109474738283892
|
--- !u!114 &1446109474738283892
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -9,25 +9,37 @@ using UnityEngine.UI;
|
|||||||
|
|
||||||
struct RequiredInformation
|
struct RequiredInformation
|
||||||
{
|
{
|
||||||
|
|
||||||
public string SNWithdeviceName;
|
public string SNWithdeviceName;
|
||||||
public Vector3 localPosition;
|
public Vector3 localPosition;
|
||||||
public string customName;//这个是浮标上面的文本,自己命的名
|
public string customName;//这个是浮标上面的文本,自己命的名
|
||||||
public string pictureSerialNumber;//MT开头的图片
|
public string pictureSerialNumber;//MT开头的图片
|
||||||
public RequiredInformation(string sn, Vector3 pos, string name, string picSn)
|
public string tag;//用tag来显示sorting Icons
|
||||||
|
public RequiredInformation(string sn, Vector3 pos, string name, string picSn,string tag)
|
||||||
{
|
{
|
||||||
SNWithdeviceName = sn;
|
SNWithdeviceName = sn;
|
||||||
localPosition = pos;
|
localPosition = pos;
|
||||||
customName = name;
|
customName = name;
|
||||||
pictureSerialNumber = picSn;
|
pictureSerialNumber = picSn;
|
||||||
|
this.tag = tag;
|
||||||
|
}
|
||||||
|
public RequiredInformation(string sn, string name, string picSn, string tag)
|
||||||
|
{
|
||||||
|
SNWithdeviceName = sn;
|
||||||
|
localPosition = Vector3.zero;
|
||||||
|
customName = name;
|
||||||
|
pictureSerialNumber = picSn;
|
||||||
|
this.tag = tag;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public class AskForWEBInfomation : MonoBehaviour
|
public class AskForWEBInfomation : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
public GameObject ICONSPosition;//把ICONSPosition拖进来提供我的这些浮标的位置
|
||||||
public Camera cam;
|
public Camera cam;
|
||||||
|
|
||||||
public GameObject buoy;//把BUoy预制体拖进来,使用代码自动生成ICON的子物体
|
public GameObject buoy;//把BUoy预制体拖进来,使用代码自动生成ICON的子物体
|
||||||
|
|
||||||
public List<Sprite> pictures = new List<Sprite>();//把图片预制体都拖过来
|
// public List<Sprite> pictures = new List<Sprite>();//把图片预制体都拖过来
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class IdentifierTextBinding
|
public class IdentifierTextBinding
|
||||||
{
|
{
|
||||||
@@ -48,25 +60,25 @@ public class AskForWEBInfomation : MonoBehaviour
|
|||||||
|
|
||||||
"ys_2026020420","ys_2026020419","ys_2026020418","ys_2026020417","ys_2026020416","ys_2026020415"
|
"ys_2026020420","ys_2026020419","ys_2026020418","ys_2026020417","ys_2026020416","ys_2026020415"
|
||||||
};
|
};
|
||||||
List<RequiredInformation> info = new List<RequiredInformation>()
|
List<RequiredInformation> infos = new List<RequiredInformation>()
|
||||||
{
|
{ //构造函数现在可以直接加3个,我现在已经通过读取场景中的位置来调节位置了,这里也不想再删它了,后面读取的时候再覆盖一下这里也不影响.
|
||||||
new RequiredInformation("ys_2026020415_sb_gnss001",new Vector3(10.9530001f,-10.7779989f,-1.75300026f),"GNSS","MT014") ,
|
new RequiredInformation("ys_2026020415_sb_gnss001",new Vector3(10.9530001f,-10.7779989f,-1.75300026f),"GNSS","MT014","沉降监测") ,
|
||||||
new RequiredInformation("ys_2026020416_sb_wuxianqingjiaoji001",new Vector3(-0.25177002f,-0.00340000005f,3.51672745f),"无线倾角计1","倾角图标") ,
|
new RequiredInformation("ys_2026020416_sb_wuxianqingjiaoji001",new Vector3(-0.25177002f,-0.00340000005f,3.51672745f),"无线倾角计1","倾角图标","倾角监测") ,
|
||||||
new RequiredInformation("ys_2026020416_sb_wuxianqingjiaoji002",new Vector3(-3.22239995f,-0.0055999998f,1.67970002f),"无线倾角计2","倾角图标") ,
|
new RequiredInformation("ys_2026020416_sb_wuxianqingjiaoji002",new Vector3(-3.22239995f,-0.0055999998f,1.67970002f),"无线倾角计2","倾角图标","倾角监测") ,
|
||||||
new RequiredInformation("ys_2026020416_sb_wuxianqingjiaoji003",new Vector3(-0.254400015f,-0.00449999981f,-0.108400002f),"无线倾角计3","倾角图标") ,
|
new RequiredInformation("ys_2026020416_sb_wuxianqingjiaoji003",new Vector3(-0.254400015f,-0.00449999981f,-0.108400002f),"无线倾角计3","倾角图标","倾角监测") ,
|
||||||
new RequiredInformation("ys_2026020417_sb_fengjizhendong001",new Vector3(1.14961243f,55.1254196f,2.07600784f),"振动加速度1","MT019") ,
|
new RequiredInformation("ys_2026020417_sb_fengjizhendong001",new Vector3(1.14961243f,55.1254196f,2.07600784f),"振动加速度1","MT019","振动加速度") ,
|
||||||
new RequiredInformation("ys_2026020417_sb_fengjizhendong002",new Vector3(1.14961243f,55.1785011f,1.38459396f),"振动加速度2","MT019") ,
|
new RequiredInformation("ys_2026020417_sb_fengjizhendong002",new Vector3(1.14961243f,55.1785011f,1.38459396f),"振动加速度2","MT019","振动加速度") ,
|
||||||
new RequiredInformation("ys_2026020418_sb_yingbianji001",new Vector3(-1.90900004f,10.3079996f,3.55800009f),"应变计1","MT013") ,
|
new RequiredInformation("ys_2026020418_sb_yingbianji001",new Vector3(-1.90900004f,10.3079996f,3.55800009f),"应变计1","MT013","应变监测") ,
|
||||||
new RequiredInformation("ys_2026020418_sb_yingbianji002",new Vector3(-3.17600012f,10.2980003f,1.66199994f),"应变计2","MT013") ,
|
new RequiredInformation("ys_2026020418_sb_yingbianji002",new Vector3(-3.17600012f,10.2980003f,1.66199994f),"应变计2","MT013","应变监测") ,
|
||||||
new RequiredInformation("ys_2026020418_sb_yingbianji003",new Vector3(-1.87399995f,10.2880001f,-0.150199994f),"应变计3","MT013") ,
|
new RequiredInformation("ys_2026020418_sb_yingbianji003",new Vector3(-1.87399995f,10.2880001f,-0.150199994f),"应变计3","MT013","应变监测") ,
|
||||||
new RequiredInformation("ys_2026020418_sb_yingbianji004",new Vector3(0.349900007f,10.2938004f,0.450199991f),"应变计4","MT013") ,
|
new RequiredInformation("ys_2026020418_sb_yingbianji004",new Vector3(0.349900007f,10.2938004f,0.450199991f),"应变计4","MT013","应变监测") ,
|
||||||
new RequiredInformation("ys_2026020418_sb_yingbianji005",new Vector3(0.400999993f,10.2967997f,2.88899994f),"应变计5","MT013") ,
|
new RequiredInformation("ys_2026020418_sb_yingbianji005",new Vector3(0.400999993f,10.2967997f,2.88899994f),"应变计5","MT013","应变监测") ,
|
||||||
new RequiredInformation("ys_2026020419_sb_wenshiya001",new Vector3(-69.6037674f,-33.9762917f,141.763977f),"温湿压1","温湿图标") ,
|
new RequiredInformation("ys_2026020419_sb_wenshiya001",new Vector3(-69.6037674f,-33.9762917f,141.763977f),"温湿压1","温湿图标","气象监测") ,
|
||||||
new RequiredInformation("ys_2026020420_sb_yachashi001",new Vector3(10.7563248f,-12.5099993f,-1.32729721f),"静力水准仪1","MT014") ,
|
new RequiredInformation("ys_2026020420_sb_yachashi001",new Vector3(10.7563248f,-12.5099993f,-1.32729721f),"静力水准仪1","MT014","沉降监测") ,
|
||||||
new RequiredInformation("ys_2026020420_sb_yachashi002",new Vector3(-1.17034912f,-12.5128984f,4.73325729f),"静力水准仪2","MT014") ,
|
new RequiredInformation("ys_2026020420_sb_yachashi002",new Vector3(-1.17034912f,-12.5128984f,4.73325729f),"静力水准仪2","MT014","沉降监测") ,
|
||||||
new RequiredInformation("ys_2026020420_sb_yachashi003",new Vector3(-1.17050004f,-12.5162926f,-1.3204f),"静力水准仪3","MT014") ,
|
new RequiredInformation("ys_2026020420_sb_yachashi003",new Vector3(-1.17050004f,-12.5162926f,-1.3204f),"静力水准仪3","MT014","沉降监测") ,
|
||||||
new RequiredInformation("ys_2026020420_sb_yachashi004",new Vector3(1.83947754f,-12.5169001f,1.70901871f),"静力水准仪4","MT014") ,
|
new RequiredInformation("ys_2026020420_sb_yachashi004",new Vector3(1.83947754f,-12.5169001f,1.70901871f),"静力水准仪4","MT014","沉降监测") ,
|
||||||
new RequiredInformation("ys_2026020420_sb_yachashi005",new Vector3(-4.20899963f,-12.5176001f,1.70901871f),"静力水准仪5","MT014") ,
|
new RequiredInformation("ys_2026020420_sb_yachashi005",new Vector3(-4.20899963f,-12.5176001f,1.70901871f),"静力水准仪5","MT014","沉降监测") ,
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -129,13 +141,23 @@ public class AskForWEBInfomation : MonoBehaviour
|
|||||||
}
|
}
|
||||||
private void InitiateICONS()
|
private void InitiateICONS()
|
||||||
{
|
{
|
||||||
foreach (RequiredInformation info in info)
|
//使用 info 之前要先用 ICONPosition 来调整一下里面的位置,用 foreach 还不能改,只能用 for 循环慢慢改回去
|
||||||
|
for (int i = 0; i < infos.Count; i++)
|
||||||
|
{
|
||||||
|
RequiredInformation info = infos[i];
|
||||||
|
info.localPosition = ICONSPosition.transform.Find(info.SNWithdeviceName).localPosition;
|
||||||
|
infos[i] = info;
|
||||||
|
}
|
||||||
|
|
||||||
|
//开始用修改好的infos来工作
|
||||||
|
foreach (RequiredInformation info in infos)
|
||||||
{
|
{
|
||||||
//生成一个预制体
|
//生成一个预制体
|
||||||
GameObject obj = Instantiate(buoy);
|
GameObject obj = Instantiate(buoy);
|
||||||
obj.name = info.SNWithdeviceName;
|
obj.name = info.SNWithdeviceName;
|
||||||
obj.transform.SetParent(transform);
|
obj.transform.SetParent(transform);
|
||||||
obj.transform.localPosition = info.localPosition;
|
obj.transform.localPosition = info.localPosition;
|
||||||
|
obj.tag = info.tag;//添加标签
|
||||||
|
|
||||||
//开始修理预制体下面的响应函数和text
|
//开始修理预制体下面的响应函数和text
|
||||||
int first = obj.name.IndexOf("_");
|
int first = obj.name.IndexOf("_");
|
||||||
@@ -156,14 +178,15 @@ public class AskForWEBInfomation : MonoBehaviour
|
|||||||
ManuallyLoadOneDevice(obj.name);
|
ManuallyLoadOneDevice(obj.name);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
foreach (Sprite img in pictures)//遍历图片数组,如果找到就结束
|
/* foreach (Sprite img in pictures)//遍历图片数组,如果找到就结束,现在改成用 Resources 直接加载
|
||||||
{
|
{
|
||||||
if (img.name == info.pictureSerialNumber)
|
if (img.name == info.pictureSerialNumber)
|
||||||
{
|
{
|
||||||
obj.transform.GetChild(0).GetComponent<Image>().sprite = img;
|
obj.transform.GetChild(0).GetComponent<Image>().sprite = img;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
obj.transform.GetChild(0).GetComponent<Image>().sprite = Resources.Load<Sprite>("Icons/"+info.pictureSerialNumber);
|
||||||
|
|
||||||
//第二个子物体负责浮标上面的文字描述
|
//第二个子物体负责浮标上面的文字描述
|
||||||
obj.transform.GetChild(1).name = deviceName + "Text";
|
obj.transform.GetChild(1).name = deviceName + "Text";
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 500eaa2b56c2c074ab576689486fd19f
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 4986223817693bc41adb331833d466b5
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -3,29 +3,29 @@ using System.Collections.Generic;
|
|||||||
//using System.Diagnostics;
|
//using System.Diagnostics;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
//这个脚本的名字是双击跳转,按照庄公的需求全部改成单击,名字的问题就先不考虑了,这里给他修改成单击,但是保留了双击的逻辑,以便以后方便切换回来
|
//这个脚本的名字是双击跳转,按照庄公的需求全部改成单击,名字的问题就先不考虑了,这里给他修改成单击,但是保留了双击的逻辑,以便以后方便切换回来
|
||||||
//把脚本复制一份上面是单击版本,下面是双击版本
|
//把脚本复制一份上面是单击版本,下面是双击版本
|
||||||
//单击双击问题最终确定,图标单击,传感器和房子双击,这样唯一问题就是双击图标怎么办,算了,妥协吧,设置为blocking objects为3d,这样不能跨越穿越,妥协了
|
//单击双击问题最终确定,图标单击,传感器和房子双击,这样唯一问题就是双击图标怎么办,算了,妥协吧,设置为blocking objects为3d,这样不能跨越穿越,妥协了
|
||||||
//public class DoubleClickToFocus : MonoBehaviour
|
//public class DoubleClickToFocus : MonoBehaviour
|
||||||
//{
|
//{
|
||||||
// private Dictionary<string, Vector3> targetObjectAndPosition = new Dictionary<string, Vector3>();//使用字典数据类型来定义每一个物体自己对应的观察点位置
|
// private Dictionary<string, Vector3> targetObjectAndPosition = new Dictionary<string, Vector3>();//使用字典数据类型来定义每一个物体自己对应的观察点位置
|
||||||
|
|
||||||
// [Tooltip("平滑过渡所用时间(秒)")] public float transitionDuration = 1.0f;
|
// [Tooltip("平滑过渡所用时间(秒)")] public float transitionDuration = 1.0f;
|
||||||
// [Header("双击设置")]
|
// [Header("双击设置")]
|
||||||
// [Tooltip("双击间隔时间阈值(秒)")] public float doubleClickInterval = 0.3f;
|
// [Tooltip("双击间隔时间阈值(秒)")] public float doubleClickInterval = 0.3f;
|
||||||
// //private float lastClickTime = 0f;
|
// //private float lastClickTime = 0f;
|
||||||
// //private bool waitingSecondClick = false;
|
// //private bool waitingSecondClick = false;
|
||||||
// bool flying = false;//双击不需要用这种方式来确定,单击的话还是要的。
|
// bool flying = false;//双击不需要用这种方式来确定,单击的话还是要的。
|
||||||
// private Camera mainCamera;
|
// private Camera mainCamera;
|
||||||
// public Vector3 core;
|
// public Vector3 core;
|
||||||
|
|
||||||
// private void Awake()
|
// private void Awake()
|
||||||
// {
|
// {
|
||||||
// core = new Vector3(-50f, 20f, -30f);//初始旋转中心
|
// core = new Vector3(-50f, 20f, -30f);//初始旋转中心
|
||||||
// }
|
// }
|
||||||
// void Start()
|
// void Start()
|
||||||
// {
|
// {
|
||||||
// mainCamera = Camera.main;//主相机的那个Camera组件跳转到的观测点
|
// mainCamera = Camera.main;//主相机的那个Camera组件跳转到的观测点
|
||||||
|
|
||||||
// //targetObjectAndPosition.Add("tt_zhuta", new Vector3(53f, 16.3f, 27.62f));
|
// //targetObjectAndPosition.Add("tt_zhuta", new Vector3(53f, 16.3f, 27.62f));
|
||||||
// //targetObjectAndPosition.Add("sb_fengsufengxiang400", new Vector3(12.23f, 11.38f, 27.62f));
|
// //targetObjectAndPosition.Add("sb_fengsufengxiang400", new Vector3(12.23f, 11.38f, 27.62f));
|
||||||
@@ -102,12 +102,12 @@ using UnityEngine.EventSystems;
|
|||||||
// public void HandleClick()
|
// public void HandleClick()
|
||||||
// {
|
// {
|
||||||
// Ray ray = mainCamera.ScreenPointToRay(Input.mousePosition);
|
// Ray ray = mainCamera.ScreenPointToRay(Input.mousePosition);
|
||||||
// if (Physics.Raycast(ray, out RaycastHit hit, Mathf.Infinity) && hit.collider.CompareTag("Target"))//应该给被打中的物体加一个标签,不然正常物体也会影响core,判断是否打中浮标或者是传感器本体,2者都要加上Target标签
|
// if (Physics.Raycast(ray, out RaycastHit hit, Mathf.Infinity) && hit.collider.CompareTag("Target"))//应该给被打中的物体加一个标签,不然正常物体也会影响core,判断是否打中浮标或者是传感器本体,2者都要加上Target标签
|
||||||
// {
|
// {
|
||||||
// Transform finalObject = hit.transform;//用浮标嫁祸给真实物体,浮标用ICON结尾,去除这个后缀就得到了真实物体的名字,不然浮标得单独打点,打点跳转也不好
|
// Transform finalObject = hit.transform;//用浮标嫁祸给真实物体,浮标用ICON结尾,去除这个后缀就得到了真实物体的名字,不然浮标得单独打点,打点跳转也不好
|
||||||
// if (finalObject.gameObject.name.EndsWith("ICON"))
|
// if (finalObject.gameObject.name.EndsWith("ICON"))
|
||||||
// {
|
// {
|
||||||
// string realObjName = finalObject.gameObject.name.Substring(0, finalObject.gameObject.name.Length - 4);//去尾法得到传感器名字,浮标名字只是在传感器名字后面加ICON,其他的不能动
|
// string realObjName = finalObject.gameObject.name.Substring(0, finalObject.gameObject.name.Length - 4);//去尾法得到传感器名字,浮标名字只是在传感器名字后面加ICON,其他的不能动
|
||||||
// finalObject = GameObject.Find(realObjName).transform;
|
// finalObject = GameObject.Find(realObjName).transform;
|
||||||
// }
|
// }
|
||||||
// foreach (KeyValuePair<string, Vector3> pair in targetObjectAndPosition)
|
// foreach (KeyValuePair<string, Vector3> pair in targetObjectAndPosition)
|
||||||
@@ -118,7 +118,7 @@ using UnityEngine.EventSystems;
|
|||||||
// StartCoroutine(MoveCamera(mainCamera, targetPos, transitionDuration, finalObject));
|
// StartCoroutine(MoveCamera(mainCamera, targetPos, transitionDuration, finalObject));
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// core = finalObject.position;//这里只要有 Target 被打中的话,你的旋转中心就会变,所以要确保被打中的物体一定是可以跳转的
|
// core = finalObject.position;//这里只要有 Target 被打中的话,你的旋转中心就会变,所以要确保被打中的物体一定是可以跳转的
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
@@ -140,28 +140,29 @@ using UnityEngine.EventSystems;
|
|||||||
// cam.transform.position = targetPos;
|
// cam.transform.position = targetPos;
|
||||||
// cam.transform.LookAt(focusTarget);
|
// cam.transform.LookAt(focusTarget);
|
||||||
// flying = false;
|
// flying = false;
|
||||||
// if (cam.transform.position.y < 0.01f) //这个是为了防止部分设备太贴近地面,导致穿透地面里面出不来。让你的相机永远都在地面0.1米以上
|
// if (cam.transform.position.y < 0.01f) //这个是为了防止部分设备太贴近地面,导致穿透地面里面出不来。让你的相机永远都在地面0.1米以上
|
||||||
// {
|
// {
|
||||||
// Vector3 newPos = cam.transform.position;
|
// Vector3 newPos = cam.transform.position;
|
||||||
// // 2. 修改y轴值(x、z保持不变)
|
// // 2. 修改y轴值(x、z保持不变)
|
||||||
// newPos.y = 0.1f;
|
// newPos.y = 0.1f;
|
||||||
// // 3. 重新赋值给position
|
// // 3. 重新赋值给position
|
||||||
// cam.transform.position = newPos;
|
// cam.transform.position = newPos;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------单击双击分界线
|
//-------------------------------------------------------------------------------------------单击双击分界线
|
||||||
|
|
||||||
|
|
||||||
public class DoubleClickToFocus : MonoBehaviour
|
public class DoubleClickToFocus : MonoBehaviour
|
||||||
{
|
{
|
||||||
private Dictionary<string, Vector3> targetObjectAndPosition = new Dictionary<string, Vector3>();//使用字典数据类型来定义每一个物体自己对应的观察点位置
|
public GameObject CameraParkingPosition; //把这个东西拖进来,用它这里面在空间中的实际位置来给相机停靠点定位,下面一项加后面已经没有必要了。
|
||||||
|
private Dictionary<string, Vector3> targetObjectAndPosition = new Dictionary<string, Vector3>();//使用字典数据类型来定义每一个物体自己对应的观察点位置
|
||||||
|
|
||||||
[Tooltip("平滑过渡所用时间(秒)")] public float transitionDuration = 1.5f;
|
[Tooltip("平滑过渡所用时间(秒)")] public float transitionDuration = 1.5f;
|
||||||
[Header("双击设置")]
|
[Header("双击设置")]
|
||||||
[Tooltip("双击间隔时间阈值(秒)")] public float doubleClickInterval = 0.3f;
|
[Tooltip("双击间隔时间阈值(秒)")] public float doubleClickInterval = 0.3f;
|
||||||
private float lastClickTime = 0f;
|
private float lastClickTime = 0f;
|
||||||
private bool waitingSecondClick = false;
|
private bool waitingSecondClick = false;
|
||||||
|
|
||||||
@@ -171,28 +172,20 @@ public class DoubleClickToFocus : MonoBehaviour
|
|||||||
bool flying = false;
|
bool flying = false;
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
core = new Vector3(-50f, 20f, -30f);//初始旋转中心
|
core = new Vector3(-50f, 20f, -30f);//初始旋转中心
|
||||||
}
|
}
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
mainCamera = Camera.main;//主相机的那个Camera组件跳转到的观测点
|
mainCamera = Camera.main;//主相机的那个Camera组件跳转到的观测点
|
||||||
|
|
||||||
|
foreach (Transform child in CameraParkingPosition.transform)
|
||||||
|
{
|
||||||
|
targetObjectAndPosition.Add(child.name, child.position);
|
||||||
|
}
|
||||||
|
|
||||||
targetObjectAndPosition.Add("bx_talou", new Vector3(-82f, 37f, -100f));
|
|
||||||
targetObjectAndPosition.Add("bx_langqiao", new Vector3(-35f, 30f, -59f));
|
|
||||||
targetObjectAndPosition.Add("bx_qiaozha", new Vector3(-26f, 35f, -74f));
|
|
||||||
targetObjectAndPosition.Add("bx_zhafang1", new Vector3(-64f, 21f, -102f));
|
|
||||||
targetObjectAndPosition.Add("bx_zhafang2", new Vector3(-8f, 26f, -173f));
|
|
||||||
targetObjectAndPosition.Add("bx_zhafang3", new Vector3(12f, 23f, -37f));
|
|
||||||
targetObjectAndPosition.Add("bx_diaosu", new Vector3(-18f, 18f, 13f));
|
|
||||||
targetObjectAndPosition.Add("sb_shujucaijiyi", new Vector3(-28f, 20.7f, 4.5f));
|
|
||||||
targetObjectAndPosition.Add("sb_shujucaijiyi (1)", new Vector3(31.3f, 19.7f, -66.3f));
|
|
||||||
targetObjectAndPosition.Add("bx_zhafang5", new Vector3(53f, 26f, -23f));
|
|
||||||
targetObjectAndPosition.Add("pj_tingzi", new Vector3(67f, 20f, -97f));
|
|
||||||
targetObjectAndPosition.Add("sb_qixiangzu001", new Vector3(14.2f, 24.8f, 11.5f));
|
|
||||||
|
|
||||||
targetObjectAndPosition.Add("sb_wuxianqingjiaoji001", new Vector3(-35.69f, 62.82f, -12.18f));
|
/* targetObjectAndPosition.Add("sb_wuxianqingjiaoji001", new Vector3(-35.69f, 62.82f, -12.18f));
|
||||||
targetObjectAndPosition.Add("sb_wuxianqingjiaoji002", new Vector3(-39.52f, 62.94f, -14.66f));
|
targetObjectAndPosition.Add("sb_wuxianqingjiaoji002", new Vector3(-39.52f, 62.94f, -14.66f));
|
||||||
targetObjectAndPosition.Add("sb_wuxianqingjiaoji003", new Vector3(-35.82f, 63f, -16.84f));
|
targetObjectAndPosition.Add("sb_wuxianqingjiaoji003", new Vector3(-35.82f, 63f, -16.84f));
|
||||||
targetObjectAndPosition.Add("sb_wuxianqingjiaoji004", new Vector3(-121.8f, 18f, -74.3f));
|
targetObjectAndPosition.Add("sb_wuxianqingjiaoji004", new Vector3(-121.8f, 18f, -74.3f));
|
||||||
@@ -227,21 +220,23 @@ public class DoubleClickToFocus : MonoBehaviour
|
|||||||
targetObjectAndPosition.Add("sb_qixiangfengxiang001", new Vector3(-105.29f, 29.16f, 127.22f));
|
targetObjectAndPosition.Add("sb_qixiangfengxiang001", new Vector3(-105.29f, 29.16f, 127.22f));
|
||||||
targetObjectAndPosition.Add("sb_qixiangfengsu001", new Vector3(-104.87f, 29.06f, 123.55f));
|
targetObjectAndPosition.Add("sb_qixiangfengsu001", new Vector3(-104.87f, 29.06f, 123.55f));
|
||||||
|
|
||||||
targetObjectAndPosition.Add("全部ViewPort", new Vector3(16f, 113f, -167f));
|
targetObjectAndPosition.Add("全部ViewPort", new Vector3(16f, 113f, -167f));
|
||||||
targetObjectAndPosition.Add("沉降监测ViewPort", new Vector3(16f, 113f, -167f));
|
targetObjectAndPosition.Add("沉降监测ViewPort", new Vector3(16f, 113f, -167f));
|
||||||
targetObjectAndPosition.Add("振动加速度ViewPort", new Vector3(16f, 113f, -167f));
|
targetObjectAndPosition.Add("振动加速度ViewPort", new Vector3(16f, 113f, -167f));
|
||||||
targetObjectAndPosition.Add("应变监测ViewPort", new Vector3(16f, 113f, -167f));
|
targetObjectAndPosition.Add("应变监测ViewPort", new Vector3(16f, 113f, -167f));
|
||||||
targetObjectAndPosition.Add("裂缝监测ViewPort", new Vector3(16f, 113f, -167f));
|
targetObjectAndPosition.Add("裂缝监测ViewPort", new Vector3(16f, 113f, -167f));
|
||||||
targetObjectAndPosition.Add("倾角监测ViewPort", new Vector3(16f, 113f, -167f));
|
targetObjectAndPosition.Add("倾角监测ViewPort", new Vector3(16f, 113f, -167f));
|
||||||
targetObjectAndPosition.Add("气象监测ViewPort", new Vector3(16f, 113f, -167f));
|
targetObjectAndPosition.Add("气象监测ViewPort", new Vector3(16f, 113f, -167f));
|
||||||
targetObjectAndPosition.Add("流量监测ViewPort", new Vector3(16f, 113f, -167f));
|
targetObjectAndPosition.Add("流量监测ViewPort", new Vector3(16f, 113f, -167f));*/
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
if (EventSystem.current != null && EventSystem.current.IsPointerOverGameObject())
|
if (EventSystem.current != null && EventSystem.current.IsPointerOverGameObject())
|
||||||
{
|
{
|
||||||
return; // 直接 return,你下面所有相机逻辑都不执行
|
return; // 直接 return,你下面所有相机逻辑都不执行
|
||||||
}
|
}
|
||||||
if (Input.GetMouseButtonDown(0))
|
if (Input.GetMouseButtonDown(0))
|
||||||
{
|
{
|
||||||
@@ -262,10 +257,10 @@ public class DoubleClickToFocus : MonoBehaviour
|
|||||||
private void HandleClick()
|
private void HandleClick()
|
||||||
{
|
{
|
||||||
Ray ray = mainCamera.ScreenPointToRay(Input.mousePosition);
|
Ray ray = mainCamera.ScreenPointToRay(Input.mousePosition);
|
||||||
if (Physics.Raycast(ray, out RaycastHit hit, Mathf.Infinity) && hit.collider.CompareTag("Target"))//这里有点小问题,应该给被打中的物体加一个标签,不然正常物体也会影响core
|
if (Physics.Raycast(ray, out RaycastHit hit, Mathf.Infinity) && hit.collider.CompareTag("Target"))//这里有点小问题,应该给被打中的物体加一个标签,不然正常物体也会影响core
|
||||||
{
|
{
|
||||||
Transform finalObject = hit.transform;//用浮标嫁祸给真实物体,浮标用ICON结尾,去除这个后缀就得到了真实物体的名字,
|
Transform finalObject = hit.transform;//用浮标嫁祸给真实物体,浮标用ICON结尾,去除这个后缀就得到了真实物体的名字,
|
||||||
//这些是之前图片直接在世界空间用spriteRender的,现在没用了,图片做成UI了,也没这个物理检测效果了。
|
//这些是之前图片直接在世界空间用spriteRender的,现在没用了,图片做成UI了,也没这个物理检测效果了。
|
||||||
if (finalObject.gameObject.name.EndsWith("ICON"))
|
if (finalObject.gameObject.name.EndsWith("ICON"))
|
||||||
{
|
{
|
||||||
string realObjName = hit.transform.gameObject.name.Substring(0, finalObject.gameObject.name.Length - 4);
|
string realObjName = hit.transform.gameObject.name.Substring(0, finalObject.gameObject.name.Length - 4);
|
||||||
@@ -276,7 +271,7 @@ public class DoubleClickToFocus : MonoBehaviour
|
|||||||
if (finalObject.gameObject.name == pair.Key)
|
if (finalObject.gameObject.name == pair.Key)
|
||||||
{
|
{
|
||||||
Vector3 targetPos = pair.Value;
|
Vector3 targetPos = pair.Value;
|
||||||
//float realTransitionDuration = Vector3.Distance(mainCamera.transform.position, targetPos) / 50f;50m每秒的飞行速度
|
//float realTransitionDuration = Vector3.Distance(mainCamera.transform.position, targetPos) / 50f;50m每秒的飞行速度
|
||||||
//realTransitionDuration = Mathf.Clamp(realTransitionDuration, 0.8f, 1.5f);
|
//realTransitionDuration = Mathf.Clamp(realTransitionDuration, 0.8f, 1.5f);
|
||||||
transitionDuration= Mathf.Clamp(Vector3.Distance(mainCamera.transform.position, targetPos) / 50f, 0.5f, 1.5f);
|
transitionDuration= Mathf.Clamp(Vector3.Distance(mainCamera.transform.position, targetPos) / 50f, 0.5f, 1.5f);
|
||||||
StartCoroutine(MoveCamera(mainCamera, targetPos, transitionDuration, finalObject));
|
StartCoroutine(MoveCamera(mainCamera, targetPos, transitionDuration, finalObject));
|
||||||
@@ -302,11 +297,11 @@ public class DoubleClickToFocus : MonoBehaviour
|
|||||||
if (focusTarget != null)
|
if (focusTarget != null)
|
||||||
cam.transform.LookAt(focusTarget);
|
cam.transform.LookAt(focusTarget);
|
||||||
elapsed += Time.deltaTime;
|
elapsed += Time.deltaTime;
|
||||||
waitingSecondClick = false;//这一步是你在每一帧我都让你不等下一次点击,
|
waitingSecondClick = false;//这一步是你在每一帧我都让你不等下一次点击,
|
||||||
//防止你再飞的过程中手速快双击的话还能飞到其他地方,
|
//防止你再飞的过程中手速快双击的话还能飞到其他地方,
|
||||||
//这样我一直给你设成 false,你怎么样都不能再飞第二次
|
//这样我一直给你设成 false,你怎么样都不能再飞第二次
|
||||||
//还有一个作用就是我单击跳转的时候也会持续触发,所以即使 UI 和实物重合,
|
//还有一个作用就是我单击跳转的时候也会持续触发,所以即使 UI 和实物重合,
|
||||||
//我也是 UI 先出发,本身 UI 的优先级就比物理碰撞的优先级要高
|
//我也是 UI 先出发,本身 UI 的优先级就比物理碰撞的优先级要高
|
||||||
flying = true;
|
flying = true;
|
||||||
yield return null;
|
yield return null;
|
||||||
}
|
}
|
||||||
@@ -316,24 +311,24 @@ public class DoubleClickToFocus : MonoBehaviour
|
|||||||
if (cam.transform.position.y < 0.01f)
|
if (cam.transform.position.y < 0.01f)
|
||||||
{
|
{
|
||||||
Vector3 newPos = cam.transform.position;
|
Vector3 newPos = cam.transform.position;
|
||||||
// 2. 修改y轴值(x、z保持不变)
|
// 2. 修改y轴值(x、z保持不变)
|
||||||
newPos.y = 0.1f;
|
newPos.y = 0.1f;
|
||||||
// 3. 重新赋值给position
|
// 3. 重新赋值给position
|
||||||
cam.transform.position = newPos;//这里埋坑了,如果以后设备真的在地下怎么办,
|
cam.transform.position = newPos;//这里埋坑了,如果以后设备真的在地下怎么办,
|
||||||
//有经纬度的高程就是y,北溪没有地下的
|
//有经纬度的高程就是y,北溪没有地下的
|
||||||
|
|
||||||
}
|
}
|
||||||
flying = false;
|
flying = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void FlyToIconAndConvertCore(string IconName)//给点击图标使用
|
public void FlyToIconAndConvertCore(string IconName)//给点击图标使用
|
||||||
{
|
{
|
||||||
if (flying)
|
if (flying)
|
||||||
return;
|
return;
|
||||||
Transform finalObject = GameObject.Find(IconName.Substring(0, IconName.Length - 4)).transform;
|
Transform finalObject = GameObject.Find(IconName.Substring(0, IconName.Length - 4)).transform;
|
||||||
//Unity 的 button 按钮通过 Inspector 没有办法灵活指定参数,
|
//Unity 的 button 按钮通过 Inspector 没有办法灵活指定参数,
|
||||||
//我在里面把参数写死,然后来一一匹配,传的参数就是gameobject的名字
|
//我在里面把参数写死,然后来一一匹配,传的参数就是gameobject的名字
|
||||||
foreach (KeyValuePair<string, Vector3> pair in targetObjectAndPosition)
|
foreach (KeyValuePair<string, Vector3> pair in targetObjectAndPosition)
|
||||||
{
|
{
|
||||||
if (IconName.Substring(0, IconName.Length - 4) == pair.Key)
|
if (IconName.Substring(0, IconName.Length - 4) == pair.Key)
|
||||||
@@ -347,12 +342,12 @@ public class DoubleClickToFocus : MonoBehaviour
|
|||||||
core = finalObject.position;
|
core = finalObject.position;
|
||||||
}
|
}
|
||||||
|
|
||||||
//给仅显示部分图标使用,name是SortingIcons的名字,飞行的过程和上面差不多
|
//给仅显示部分图标使用,name是SortingIcons的名字,飞行的过程和上面差不多
|
||||||
public void FlyToOverlookAndConvertCore(string name)
|
public void FlyToOverlookAndConvertCore(string name)
|
||||||
{
|
{
|
||||||
if (flying)
|
if (flying)
|
||||||
return;
|
return;
|
||||||
Transform finalObject = GameObject.Find(name + "ViewPort").transform; //在场景里加对应名的空物体作为伪终点。
|
Transform finalObject = GameObject.Find(name + "ViewPort").transform; //在场景里加对应名的空物体作为伪终点。
|
||||||
foreach (KeyValuePair<string, Vector3> pair in targetObjectAndPosition)
|
foreach (KeyValuePair<string, Vector3> pair in targetObjectAndPosition)
|
||||||
{
|
{
|
||||||
if (finalObject.gameObject.name == pair.Key)
|
if (finalObject.gameObject.name == pair.Key)
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 928c1a340fd1ab846a4ce724e1dca34a
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 9bf67224f56146549938b02b5083f217
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7ecb74b5777741e41a17f224352daba9
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: ff3b04630a566da47910993dfba8e638
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 0f9f32f70dec08a488a75d5ad2d3601b
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: db8f02e226eb91748ac6a3469878a8a4
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 410b270eca23bfe4aadcc4d64d3f0d1d
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using TMPro;
|
|
||||||
using UnityEngine;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
|
|
||||||
public class ConnectToRealSluicesHeight : MonoBehaviour
|
|
||||||
{
|
|
||||||
[Serializable]
|
|
||||||
public class SluicesSliderBinding
|
|
||||||
{
|
|
||||||
public GameObject sluice;
|
|
||||||
public GameObject slider;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<SluicesSliderBinding> bindings = new List<SluicesSliderBinding>();
|
|
||||||
|
|
||||||
private Dictionary<GameObject, Vector3> sluiceInitialLocalPosition = new Dictionary<GameObject, Vector3>();
|
|
||||||
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
foreach (var binding in bindings)
|
|
||||||
{
|
|
||||||
sluiceInitialLocalPosition[binding.sluice] = binding.sluice.transform.localPosition;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
foreach (var binding in bindings)
|
|
||||||
{
|
|
||||||
Slider sliderComp = binding.slider.GetComponent<Slider>();
|
|
||||||
Vector3 initLocalPos = sluiceInitialLocalPosition[binding.sluice];
|
|
||||||
|
|
||||||
binding.sluice.transform.localPosition = new Vector3(
|
|
||||||
initLocalPos.x,
|
|
||||||
initLocalPos.y + sliderComp.value,
|
|
||||||
initLocalPos.z
|
|
||||||
);
|
|
||||||
|
|
||||||
binding.slider.transform.Find("Text (TMP)").GetComponent<TextMeshProUGUI>().text =
|
|
||||||
binding.slider.name.Substring(6) + "#" + ": " + sliderComp.value.ToString("F1");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 435a1377c29de3e48a8aff544627f80f
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
|
|
||||||
public class ModifySluiceHeightManually : MonoBehaviour
|
|
||||||
{
|
|
||||||
// Start is called before the first frame update
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
//setHeight("sluice1", 1.5f);
|
|
||||||
//setHeight("sluice2,1.5");
|
|
||||||
//setHeight("sluice1,1.5");
|
|
||||||
//Debug.Log("aaaa");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
//public void setHeight(string sluiceName,float height)
|
|
||||||
//{
|
|
||||||
// transform.Find("Sliders/" + sluiceName).GetComponent<Slider>().value = height;
|
|
||||||
//}
|
|
||||||
public void setHeight(string sluiceNameAndHeight)
|
|
||||||
{
|
|
||||||
string[] parts = sluiceNameAndHeight.Split(',');
|
|
||||||
transform.Find("Sliders/" + parts[0]).GetComponent<Slider>().value = float.Parse(parts[1]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 82f187734168bad498845ae9a9967cc6
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
|
|
||||||
public class OneKeyOperation : MonoBehaviour
|
|
||||||
{
|
|
||||||
// Start is called before the first frame update
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
public void AllOpen()
|
|
||||||
{
|
|
||||||
foreach(Transform child in transform.Find("Sliders").transform)
|
|
||||||
{
|
|
||||||
StartCoroutine(SmoothIncreaseToTwo(0.3f, child));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
public void AllClose()
|
|
||||||
{
|
|
||||||
foreach (Transform child in transform.Find("Sliders").transform)
|
|
||||||
{
|
|
||||||
StartCoroutine(SmoothDecreaseToZero(0.3f, child));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
IEnumerator SmoothDecreaseToZero(float duration,Transform child )
|
|
||||||
{
|
|
||||||
float startValue = child.GetComponent<Slider>().value;
|
|
||||||
float time = 0f;
|
|
||||||
while (time < duration)
|
|
||||||
{
|
|
||||||
time += Time.deltaTime;
|
|
||||||
startValue = Mathf.Lerp(startValue, 0f, time / duration);
|
|
||||||
child.GetComponent<Slider>().value = startValue;
|
|
||||||
yield return null;
|
|
||||||
}
|
|
||||||
child.GetComponent<Slider>().value = 0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
IEnumerator SmoothIncreaseToTwo(float duration, Transform child)
|
|
||||||
{
|
|
||||||
float startValue = child.GetComponent<Slider>().value;
|
|
||||||
float time = 0f;
|
|
||||||
while (time < duration)
|
|
||||||
{
|
|
||||||
time += Time.deltaTime;
|
|
||||||
startValue = Mathf.Lerp(startValue, 2f, time / duration);
|
|
||||||
child.GetComponent<Slider>().value = startValue;
|
|
||||||
yield return null;
|
|
||||||
}
|
|
||||||
child.GetComponent<Slider>().value = 2f;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 8ab7398f0cf55e44982d5db77cffb184
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 0c4e033165d6b0b438d356d601068c21
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 124100b5f0b252a419ba900d91ff1d3f
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: edf26518729fa024ca108689392dd1c3
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 64a10dae871f32c4e8d9a163a4b99dff
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Binary file not shown.
Reference in New Issue
Block a user