场景更新(相机控制)

This commit is contained in:
Afeijia 2023-08-28 19:16:45 +08:00
parent 51e331543d
commit cf21c07c75
1 changed files with 167 additions and 27 deletions

View File

@ -800,7 +800,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 11 m_RootOrder: 12
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &137188656 --- !u!114 &137188656
MonoBehaviour: MonoBehaviour:
@ -955,7 +955,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 14 m_RootOrder: 15
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &140293605 --- !u!114 &140293605
MonoBehaviour: MonoBehaviour:
@ -1966,7 +1966,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 8 m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &219085156 --- !u!114 &219085156
MonoBehaviour: MonoBehaviour:
@ -3187,7 +3187,7 @@ Transform:
- {fileID: 284282834} - {fileID: 284282834}
- {fileID: 1512339843} - {fileID: 1512339843}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 19 m_RootOrder: 20
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &479205360 --- !u!1 &479205360
GameObject: GameObject:
@ -3950,7 +3950,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 24 m_RootOrder: 25
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &698734397 stripped --- !u!1 &698734397 stripped
GameObject: GameObject:
@ -4054,7 +4054,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 3 m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &733108990 --- !u!1 &733108990
GameObject: GameObject:
@ -4704,7 +4704,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 12 m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &749989404 --- !u!114 &749989404
MonoBehaviour: MonoBehaviour:
@ -5265,7 +5265,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 25 m_RootOrder: 26
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &895883879 stripped --- !u!1 &895883879 stripped
GameObject: GameObject:
@ -5579,8 +5579,8 @@ RectTransform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225} m_GameObject: {fileID: 963194225}
m_LocalRotation: {x: -0.0015559762, y: 0.8335369, z: -0.5524572, w: -0.0021966696} m_LocalRotation: {x: -0.0013775147, y: 0.8335373, z: -0.55245763, w: -0.0020783672}
m_LocalPosition: {x: 0, y: 0, z: -4.7380123} m_LocalPosition: {x: 0, y: 0, z: -4.708548}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
@ -5589,7 +5589,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 62.856, y: -0.314, z: 0.033} m_LocalEulerAnglesHint: {x: 62.856, y: -0.314, z: 0.033}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 4.73694, y: 20.184704} m_AnchoredPosition: {x: 4.638855, y: 19.239876}
m_SizeDelta: {x: 100, y: 100} m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &963194229 --- !u!114 &963194229
@ -5599,7 +5599,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225} m_GameObject: {fileID: 963194225}
m_Enabled: 1 m_Enabled: 0
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5093c4d5facb71e4a88187ba7f07b43f, type: 3} m_Script: {fileID: 11500000, guid: 5093c4d5facb71e4a88187ba7f07b43f, type: 3}
m_Name: m_Name:
@ -5614,6 +5614,7 @@ MonoBehaviour:
initialRotationEulerAngles: {x: 67.072, y: -179.714, z: -0.025} initialRotationEulerAngles: {x: 67.072, y: -179.714, z: -0.025}
isvalid: 1 isvalid: 1
mask_img: {fileID: 1332666220982349660} mask_img: {fileID: 1332666220982349660}
CameraRT: {fileID: 1620389866}
--- !u!114 &963194230 --- !u!114 &963194230
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -5767,6 +5768,37 @@ Transform:
m_CorrespondingSourceObject: {fileID: 5983690153914988819, guid: c8f09218a803c944e84c2336104ca2f9, type: 3} m_CorrespondingSourceObject: {fileID: 5983690153914988819, guid: c8f09218a803c944e84c2336104ca2f9, type: 3}
m_PrefabInstance: {fileID: 5868017143503836929} m_PrefabInstance: {fileID: 5868017143503836929}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1 &986575408
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 986575409}
m_Layer: 0
m_Name: target
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &986575409
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 986575408}
m_LocalRotation: {x: 0, y: 1, z: 0, w: 0}
m_LocalPosition: {x: 4.6, y: 0.82, z: -12.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1620389868}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
--- !u!1 &1019062012 stripped --- !u!1 &1019062012 stripped
GameObject: GameObject:
m_CorrespondingSourceObject: {fileID: 9124360103480340722, guid: c8f09218a803c944e84c2336104ca2f9, type: 3} m_CorrespondingSourceObject: {fileID: 9124360103480340722, guid: c8f09218a803c944e84c2336104ca2f9, type: 3}
@ -5841,7 +5873,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 13 m_RootOrder: 14
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1036835678 --- !u!114 &1036835678
MonoBehaviour: MonoBehaviour:
@ -6105,7 +6137,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 9 m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1056840580 --- !u!114 &1056840580
MonoBehaviour: MonoBehaviour:
@ -6768,7 +6800,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 20 m_RootOrder: 21
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1168592495 --- !u!1 &1168592495
GameObject: GameObject:
@ -6896,7 +6928,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 17 m_RootOrder: 18
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1171060990 stripped --- !u!1 &1171060990 stripped
GameObject: GameObject:
@ -7721,7 +7753,7 @@ Transform:
- {fileID: 743945424} - {fileID: 743945424}
- {fileID: 442675218} - {fileID: 442675218}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 22 m_RootOrder: 23
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1500915739 --- !u!1 &1500915739
GameObject: GameObject:
@ -8361,7 +8393,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 23 m_RootOrder: 24
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1539081136 --- !u!1 &1539081136
GameObject: GameObject:
@ -8532,6 +8564,114 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 23e8bd7687024594392e2d3e244e6b98, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 23e8bd7687024594392e2d3e244e6b98, type: 3}
--- !u!1 &1620389864
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1620389868}
- component: {fileID: 1620389867}
- component: {fileID: 1620389866}
- component: {fileID: 1620389865}
m_Layer: 0
m_Name: CameraController
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1620389865
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1620389864}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d1adfbb027f8d39459702be3e8fb2b14, type: 3}
m_Name:
m_EditorClassIdentifier:
viewOne: {fileID: 0}
viewTwo: {fileID: 0}
warns:
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
warnning: []
count: 0
--- !u!114 &1620389866
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1620389864}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b0b9e0f8345b2384394ba306242cd2a4, type: 3}
m_Name:
m_EditorClassIdentifier:
cam: {fileID: 963194227}
x: 0
y: 0
z: 0
xSpeed_move: 10
ySpeed_move: 10
xSpeed_rotate: 2
ySpeed_rotate: 2
mSpeed_scale: 10
yMinLimit: 2
yMaxLimit: 90
leftMax: -365
rightMax: 365
distance: 20
minDistance: 10
maxDistance: 20
needDamping: 1
damping: 6
isRangeClamped: 1
xMinValue: -5
xMaxValue: 15
zMinValue: -15
zMaxValue: -5
autoRotate: 0
rotateTimer: 15
rotateSpeed: 5
--- !u!114 &1620389867
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1620389864}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3eb4821edfbe33540a04ab32d1cf7212, type: 3}
m_Name:
m_EditorClassIdentifier:
logicViewList: []
--- !u!4 &1620389868
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1620389864}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 986575409}
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1625438124 --- !u!1 &1625438124
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -9178,7 +9318,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 10 m_RootOrder: 11
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1706230386 --- !u!114 &1706230386
MonoBehaviour: MonoBehaviour:
@ -10785,7 +10925,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 16 m_RootOrder: 17
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1859118122 --- !u!114 &1859118122
MonoBehaviour: MonoBehaviour:
@ -11047,7 +11187,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 7 m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1877492179 --- !u!114 &1877492179
MonoBehaviour: MonoBehaviour:
@ -12250,7 +12390,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 21 m_RootOrder: 22
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &2001446124 stripped --- !u!1 &2001446124 stripped
GameObject: GameObject:
@ -12623,7 +12763,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 15 m_RootOrder: 16
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2098930745 --- !u!114 &2098930745
MonoBehaviour: MonoBehaviour:
@ -13662,7 +13802,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 5 m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1175681072998445385 --- !u!1 &1175681072998445385
GameObject: GameObject:
@ -95419,7 +95559,7 @@ Transform:
- {fileID: 1332666220984907239} - {fileID: 1332666220984907239}
- {fileID: 4362348816139420719} - {fileID: 4362348816139420719}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 18 m_RootOrder: 19
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &4362348816935953891 --- !u!1 &4362348816935953891
GameObject: GameObject:
@ -107430,7 +107570,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 6 m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &6550617821253441484 --- !u!23 &6550617821253441484
MeshRenderer: MeshRenderer:
@ -107760,7 +107900,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 4 m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &7127680886251290947 --- !u!114 &7127680886251290947
MonoBehaviour: MonoBehaviour: