Profiles prefab and scripts

This commit is contained in:
2025-09-09 22:46:20 -07:00
parent 61a6025b9c
commit e2569f04c6
15 changed files with 9918 additions and 298 deletions

View File

@@ -78,4 +78,10 @@ public static class Tools
Sprite sprite = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), new UnityEngine.Vector2(0.5f, 0.5f));
targetImage.sprite = sprite;
}
public static void RefreshHierarchy(GameObject root)
{
foreach (Transform child in root.transform) RefreshHierarchy(child.gameObject);
if (root.TryGetComponent<RectTransform>(out var rect)) LayoutRebuilder.ForceRebuildLayoutImmediate(rect);
}
}