From d37222010d567406c925502cb4e55de9682082ae Mon Sep 17 00:00:00 2001 From: wanderingpix Date: Sat, 22 Aug 2026 13:37:02 +0100 Subject: [PATCH] Document CenteredGridArrange --- .../Utilities/Components/CenteredGridArrange.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/MiraAPI/Utilities/Components/CenteredGridArrange.cs b/MiraAPI/Utilities/Components/CenteredGridArrange.cs index 8daa8b1..ee32b26 100644 --- a/MiraAPI/Utilities/Components/CenteredGridArrange.cs +++ b/MiraAPI/Utilities/Components/CenteredGridArrange.cs @@ -6,11 +6,22 @@ using UnityEngine; namespace MiraAPI.Utilities.Components; +/// +/// Utility component for arranging objects in a centered layout, similar to . +/// +/// [RegisterInIl2Cpp] public class CenteredGridArrange(IntPtr ptr) : MonoBehaviour(ptr) { + /// + /// Gets or sets the cell size, which is used for spacing. + /// public Vector2 CellSize; - public int MaxColumns = 3; + + /// + /// Gets or sets the maximum amount of columns. + /// + public int MaxColumns = 6; private List cells; private static List currentChildren = new List(); @@ -73,4 +84,4 @@ public class CenteredGridArrange(IntPtr ptr) : MonoBehaviour(ptr) cell.position = new Vector3(x, y, cell.position.z); } } -} \ No newline at end of file +}