闪黑问题

This commit is contained in:
2026-04-30 16:07:37 +08:00
parent 2792916807
commit c0dd21b524
2 changed files with 59 additions and 467 deletions

View File

@@ -505,10 +505,10 @@ RectTransform:
- {fileID: 678698532} - {fileID: 678698532}
m_Father: {fileID: 932364532} m_Father: {fileID: 932364532}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 188.24998, y: -25} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 376.49997, y: 50} m_SizeDelta: {x: 0, y: 50}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &185332756 --- !u!114 &185332756
MonoBehaviour: MonoBehaviour:
@@ -652,285 +652,6 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: -20, y: -20} m_SizeDelta: {x: -20, y: -20}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1001 &310412159
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 528948626}
m_Modifications:
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_Pivot.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_SizeDelta.x
value: 100
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_SizeDelta.y
value: 100
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 685544287360755057, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 685544287360755057, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 685544287360755057, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMin.y
value: 0.23399997
objectReference: {fileID: 0}
- target: {fileID: 1482305760229870820, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_SizeDelta.x
value: 360
objectReference: {fileID: 0}
- target: {fileID: 1482305760229870820, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_SizeDelta.y
value: 400
objectReference: {fileID: 0}
- target: {fileID: 1508457991030496397, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4184539458356606944, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: senderBaseList.Array.size
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4184539458356606944, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: receiverBaseList.Array.size
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4184539458356606944, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: senderBaseList.Array.data[0]
value:
objectReference: {fileID: 0}
- target: {fileID: 4184539458356606944, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: senderBaseList.Array.data[1]
value:
objectReference: {fileID: 0}
- target: {fileID: 4184539458356606944, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: receiverBaseList.Array.data[0]
value:
objectReference: {fileID: 0}
- target: {fileID: 4184539458356606944, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: receiverBaseList.Array.data[1]
value:
objectReference: {fileID: 0}
- target: {fileID: 4184539458356606944, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: signalingHandlerList.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4184539458356606944, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: signalingHandlerList.Array.data[0]
value:
objectReference: {fileID: 1915034405}
- target: {fileID: 4584148620787798253, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_Name
value: StatsUI
objectReference: {fileID: 0}
- target: {fileID: 5861133140963408233, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5861133140963408233, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5889328126953563681, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5889328126953563681, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5889328126953563681, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_SizeDelta.x
value: 323
objectReference: {fileID: 0}
- target: {fileID: 5889328126953563681, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 171.5
objectReference: {fileID: 0}
- target: {fileID: 5889328126953563681, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8197558794462998189, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8197558794462998189, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8277204699089381438, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8277204699089381438, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8277204699089381438, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8277204699089381438, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9208257010345579798, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9208257010345579798, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9208257010345579798, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 562feaa3a43a01841a00c6ac89b133fb, type: 3}
--- !u!224 &310412160 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 508261314311064870, guid: 562feaa3a43a01841a00c6ac89b133fb,
type: 3}
m_PrefabInstance: {fileID: 310412159}
m_PrefabAsset: {fileID: 0}
--- !u!1 &313258691 --- !u!1 &313258691
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -1170,10 +891,10 @@ RectTransform:
- {fileID: 1676245737} - {fileID: 1676245737}
m_Father: {fileID: 932364532} m_Father: {fileID: 932364532}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 376.49997, y: -60} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 376.49997, y: 50} m_SizeDelta: {x: 0, y: 50}
m_Pivot: {x: 1, y: 1} m_Pivot: {x: 1, y: 1}
--- !u!114 &346362251 --- !u!114 &346362251
MonoBehaviour: MonoBehaviour:
@@ -1618,135 +1339,6 @@ MonoBehaviour:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
m_IsOn: 1 m_IsOn: 1
--- !u!1001 &509297427
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 528948626}
m_Modifications:
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_Pivot.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_AnchorMin.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_SizeDelta.x
value: 100
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_SizeDelta.y
value: 100
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037113455314838175, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
propertyPath: m_Name
value: BackButtonManager
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 7aa5bec5b1e406445af144843fe4d62c, type: 3}
--- !u!224 &509297428 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 4037113455314838168, guid: 7aa5bec5b1e406445af144843fe4d62c,
type: 3}
m_PrefabInstance: {fileID: 509297427}
m_PrefabAsset: {fileID: 0}
--- !u!1 &528948622 --- !u!1 &528948622
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -1842,8 +1434,6 @@ RectTransform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 447881815} - {fileID: 447881815}
- {fileID: 310412160}
- {fileID: 509297428}
- {fileID: 1828472682} - {fileID: 1828472682}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -2335,10 +1925,10 @@ RectTransform:
- {fileID: 2128695119} - {fileID: 2128695119}
m_Father: {fileID: 1423621364} m_Father: {fileID: 1423621364}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 396.49997, y: -180} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 376.49997, y: 170} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0} m_Pivot: {x: 0, y: 0}
--- !u!114 &932364533 --- !u!114 &932364533
MonoBehaviour: MonoBehaviour:
@@ -2590,10 +2180,10 @@ RectTransform:
- {fileID: 172843649} - {fileID: 172843649}
m_Father: {fileID: 2134522315} m_Father: {fileID: 2134522315}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 376.49997, y: -160} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 376.49997, y: 50} m_SizeDelta: {x: 0, y: 50}
m_Pivot: {x: 1, y: 1} m_Pivot: {x: 1, y: 1}
--- !u!114 &1013695940 --- !u!114 &1013695940
MonoBehaviour: MonoBehaviour:
@@ -3039,10 +2629,10 @@ RectTransform:
- {fileID: 848285180} - {fileID: 848285180}
m_Father: {fileID: 2134522315} m_Father: {fileID: 2134522315}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 188.24998, y: -135} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 376.49997, y: 30} m_SizeDelta: {x: 0, y: 30}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1134039334 --- !u!114 &1134039334
MonoBehaviour: MonoBehaviour:
@@ -3317,10 +2907,10 @@ RectTransform:
- {fileID: 1221238572} - {fileID: 1221238572}
m_Father: {fileID: 131784669} m_Father: {fileID: 131784669}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: -250} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 782.99994, y: 250} m_SizeDelta: {x: 0, y: 250}
m_Pivot: {x: 0, y: 0} m_Pivot: {x: 0, y: 0}
--- !u!114 &1180904221 --- !u!114 &1180904221
MonoBehaviour: MonoBehaviour:
@@ -3381,10 +2971,10 @@ RectTransform:
m_Children: [] m_Children: []
m_Father: {fileID: 1180904220} m_Father: {fileID: 1180904220}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 587.24994, y: -130} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 371.49997, y: 220} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1221238573 --- !u!114 &1221238573
MonoBehaviour: MonoBehaviour:
@@ -3895,10 +3485,10 @@ RectTransform:
m_Children: [] m_Children: []
m_Father: {fileID: 1180904220} m_Father: {fileID: 1180904220}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 195.74998, y: -130} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 371.49997, y: 220} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1363584101 --- !u!114 &1363584101
MonoBehaviour: MonoBehaviour:
@@ -3994,10 +3584,10 @@ RectTransform:
- {fileID: 932364532} - {fileID: 932364532}
m_Father: {fileID: 131784669} m_Father: {fileID: 131784669}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 391.49997, y: -350} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 782.99994, y: 200} m_SizeDelta: {x: 0, y: 200}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1423621365 --- !u!114 &1423621365
MonoBehaviour: MonoBehaviour:
@@ -4783,7 +4373,7 @@ RectTransform:
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: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 100, y: 100} m_SizeDelta: {x: 300, y: 300}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1846535029 --- !u!1 &1846535029
GameObject: GameObject:
@@ -4911,10 +4501,10 @@ RectTransform:
- {fileID: 1664650282} - {fileID: 1664650282}
m_Father: {fileID: 2134522315} m_Father: {fileID: 2134522315}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 188.24998, y: -25} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 376.49997, y: 50} m_SizeDelta: {x: 0, y: 50}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1859585770 --- !u!114 &1859585770
MonoBehaviour: MonoBehaviour:
@@ -5440,10 +5030,10 @@ RectTransform:
- {fileID: 1268027397} - {fileID: 1268027397}
m_Father: {fileID: 2134522315} m_Father: {fileID: 2134522315}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 188.24998, y: -85} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 376.49997, y: 50} m_SizeDelta: {x: 0, y: 50}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2125586392 --- !u!114 &2125586392
MonoBehaviour: MonoBehaviour:
@@ -5576,10 +5166,10 @@ RectTransform:
- {fileID: 174875021} - {fileID: 174875021}
m_Father: {fileID: 932364532} m_Father: {fileID: 932364532}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 376.49997, y: -120} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 376.49997, y: 50} m_SizeDelta: {x: 0, y: 50}
m_Pivot: {x: 1, y: 1} m_Pivot: {x: 1, y: 1}
--- !u!114 &2128695120 --- !u!114 &2128695120
MonoBehaviour: MonoBehaviour:
@@ -5698,10 +5288,10 @@ RectTransform:
- {fileID: 1013695939} - {fileID: 1013695939}
m_Father: {fileID: 1423621364} m_Father: {fileID: 1423621364}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 10, y: -220} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 376.49997, y: 210} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0} m_Pivot: {x: 0, y: 0}
--- !u!114 &2134522316 --- !u!114 &2134522316
MonoBehaviour: MonoBehaviour:

View File

@@ -1,4 +1,4 @@
// D:\Project\Unity\webrtc\Assets\Script\MultiParticipantHostSample.cs // D:\Project\Unity\webrtc\Assets\Script\MultiParticipantHostSample.cs
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using UnityEngine; using UnityEngine;
@@ -165,7 +165,9 @@ namespace Unity.RenderStreaming
// 绑定视频当Receiver收到纹理时更新RawImage // 绑定视频当Receiver收到纹理时更新RawImage
ps.videoReceiver.OnUpdateReceiveTexture += texture => ps.videoReceiver.OnUpdateReceiveTexture += texture =>
{ {
if (ui.videoImage != null) ui.videoImage.color = Color.white;
// 防止纹理为null时导致RawImage闪黑重协商/track切换时可能短暂为null
if (ui.videoImage != null && texture != null)
ui.videoImage.texture = texture; ui.videoImage.texture = texture;
}; };
@@ -208,7 +210,6 @@ namespace Unity.RenderStreaming
// 根节点 // 根节点
ui.root = new GameObject($"ParticipantUI_{participantId}"); ui.root = new GameObject($"ParticipantUI_{participantId}");
ui.root.transform.SetParent(participantVideoContainer, false); ui.root.transform.SetParent(participantVideoContainer, false);
// 添加VerticalLayoutGroup使内容垂直排列 // 添加VerticalLayoutGroup使内容垂直排列
var vlg = ui.root.AddComponent<VerticalLayoutGroup>(); var vlg = ui.root.AddComponent<VerticalLayoutGroup>();
vlg.childControlWidth = true; vlg.childControlWidth = true;
@@ -216,7 +217,8 @@ namespace Unity.RenderStreaming
vlg.childForceExpandWidth = true; vlg.childForceExpandWidth = true;
vlg.childForceExpandHeight = false; vlg.childForceExpandHeight = false;
vlg.spacing = 2; vlg.spacing = 2;
ui.root.transform.GetComponent<RectTransform>().anchorMin = Vector2.zero;
ui.root.transform.GetComponent<RectTransform>().anchorMax = Vector2.one;
// 名称标签 // 名称标签
var labelObj = new GameObject("NameLabel"); var labelObj = new GameObject("NameLabel");
labelObj.transform.SetParent(ui.root.transform, false); labelObj.transform.SetParent(ui.root.transform, false);