mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
Keep advanced wiki pages at local scale when parenting
This commit is contained in:
1 parent
ec4a5f2bae
commit
c5431f0666
1 file changed
+1
-1
@@ -775,7 +775,7 @@ public static class Helpers
|
||||
grid.localScale = new Vector3(1.3f, 1.3f, 1);
|
||||
}
|
||||
|
||||
obj.transform.SetParent(parent.Inner.transform);
|
||||
obj.transform.SetParent(parent.Inner.transform, false);
|
||||
obj.transform.localPosition = new Vector3(0f, 0f, 0f);
|
||||
parent.SetYBoundsMax(Mathf.Clamp(desc.textBounds.size.y - 2 + Mathf.Ceil(num / 2f) * 1.45f, 0f, 999f));
|
||||
return obj;
|
||||
|
||||
Reference in new issue
Block a user