This commit is contained in:
2025-12-01 19:01:07 +08:00
parent 455c13a678
commit 92ba80b399
3825 changed files with 143766 additions and 118209 deletions

View File

@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: 324bb39c0bff0f74fa42f83e91f07e3a
timeCreated: 1520710946
licenseType: Store
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []

View File

@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: 6136cb3c00eac0149901b8e7f2fecef8
timeCreated: 1550943949
licenseType: Store
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []

View File

@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: d15693a03d0d33b4892c6365a2a97e19
timeCreated: 1472036503
licenseType: Store
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []

View File

@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: e7b1a420c564be040bf73b8a377fc2c2
timeCreated: 1466375168
licenseType: Store
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []

View File

@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: d2ea291be9de70a4abfec595203c96c1
timeCreated: 1465919949
licenseType: Store
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []

View File

@@ -885,8 +885,6 @@ namespace IngameDebugConsole
}
}
}
recycledListView.OnViewportWidthChanged();
}
// If SnapToBottom is enabled, force the scrollbar to the bottom
@@ -950,11 +948,8 @@ namespace IngameDebugConsole
if( screenDimensionsChanged )
{
// Update the recycled list view
if( isLogWindowVisible )
recycledListView.OnViewportHeightChanged();
else
popupManager.UpdatePosition( true );
if (!isLogWindowVisible)
popupManager.UpdatePosition(true);
#if UNITY_EDITOR || UNITY_ANDROID || UNITY_IOS
CheckScreenCutout();
@@ -1643,9 +1638,6 @@ namespace IngameDebugConsole
anchorMin.y = Mathf.Clamp01( localPoint.y / canvasSize.y );
logWindowTR.anchorMin = anchorMin;
// Update the recycled list view
recycledListView.OnViewportHeightChanged();
}
// Determine the filtered list of debug entries to show on screen

View File

@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: 6a4f16ed905adcd4ab0d7c8c11f0d72c
timeCreated: 1522092746
licenseType: Store
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []

View File

@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: 05cc4b1999716644c9308528e38e7081
timeCreated: 1466533184
licenseType: Store
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []

View File

@@ -45,6 +45,8 @@ namespace IngameDebugConsole
private bool isCollapseOn = false;
private bool viewportSizeChanged;
// Current indices of debug entries shown on screen
private int currentTopIndex = -1, currentBottomIndex = -1;
@@ -293,12 +295,29 @@ namespace IngameDebugConsole
return -1;
}
// Log window's width has changed, update the expanded (currently selected) log's height
public void OnViewportWidthChanged()
{
if( indexOfSelectedLogEntry >= entriesToShow.Count )
return;
private void OnRectTransformDimensionsChange()
{
viewportSizeChanged = true;
}
private void LateUpdate()
{
if (viewportSizeChanged)
{
viewportSizeChanged = false;
OnViewportSizeChanged();
}
}
private void OnViewportSizeChanged()
{
if (indexOfSelectedLogEntry >= entriesToShow.Count)
{
UpdateItemsInTheList(false);
return;
}
// Update the expanded (currently selected) log's height
CalculateSelectedLogEntryHeight();
CalculateContentHeight();
UpdateItemsInTheList( true );
@@ -306,12 +325,6 @@ namespace IngameDebugConsole
manager.ValidateScrollPosition();
}
// Log window's height has changed, update the list
public void OnViewportHeightChanged()
{
UpdateItemsInTheList( false );
}
private void CalculateContentHeight()
{
float newHeight = Mathf.Max( 1f, entriesToShow.Count * logItemHeight );

View File

@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: ce231987d32488f43b6fb798f7df43f6
timeCreated: 1466373025
licenseType: Store
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []

View File

@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: 6565f2084f5aef44abe57c988745b9c3
timeCreated: 1601221093
licenseType: Store
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []

View File

@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: cb564dcb180e586429c57456166a76b5
timeCreated: 1466004663
licenseType: Store
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []

View File

@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: c3cc1b407f337e641ad32a2e91d5b478
timeCreated: 1658741613
licenseType: Store
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []