Migrating 2025 April 27 to Preview
Last updated
Was this helpful?
Last updated
Was this helpful?
This version changes the following:
TextRuntime.Height
50
0
TextRuntime.HeightUnits
DimensionUnitType.Absolute
DimensionUnitType.RelativeToChildren
TextRuntime.Width
100
0
TextRuntime.WidthUnits
DimensionUnitType.Absolute
DimensionUnitType.RelativeToChildren
This change only changes how code works, and does not affect the tool, nor does it affect projcts which are loading .gumx files.
This change was made to address the confusion of TextRuntime instances wrapping at what seemed like arbitrary points.
The following code can be used to see the difference:
Note that Height and HeightUnits have also changed so that TextRuntimes now automatically adjust their heights. This allows TextRuntimes to properly stack by default, as shown in the following code:
This change only modifies the default variables, it does not change the behavior of TextRuntime if Height, HeightUnits, Width, and WidthUnits are explicitly set. In other words, the old behavior can be obtained by setting the values as shown in the following code:
This version changes how X Units
are applied to children in a container with its Children Layout
set to Left to Right Stack
. It also changes how Y Units
are applied to children in a container with its Children Layout
set to Left to Right Stack
. This changes how Gum behaves both in the tool and all runtimes.
This change only applies children after the first item in a stack. All subsequent items in a stack ignore the their units values.
This change was made to address the confusion of copying/pasting a child which is not positioned at the top left resulting in overlapping children.
For example, consider a container with two Text instances. The container uses a Children Layout
of Top to Bottom Stack
. In this example, both Text instances have their Y Unit
value set to Center
. Notice that the first Text instance is positioned relative to the vertical center of its parent, and the second Text instance is positioned under.
Previously, the 2nd Text would ignore the stacking behavior since it had a Y Units
set to Center
, forcing it to be positioned relative to its parent's vertical center.
To continue using the old behavior, set the parent's Children Layout
to Regular
.