Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Doesn't behave correctly with layout

A topic by darthdeus created May 14, 2024 Views: 87 Replies: 1
Viewing posts 1 to 2

Here’s an example of a very simple scene with SuperTextMesh, TextMeshPro and Legacy Text

image.png

The bottom three are identical, the top one has an extra ContentSizeFitter as the docs suggest, which does kinda help, but still causes the layout to be wrong.

The exact setup is created following this short video https://www.youtube.com/watch?v=W4tUQr9Tv3g, in short it’s simply a text item with two nested VerticalLayoutGroups set to Control Child Size.

Developer

Could I see a screenshot of the inspector for the STM components? Basically, there's a couple settings in STM that are there for legacy purposes, so it's possible for STM to follow a layout wrong or differently if not configured right.

For the contentsizefitters, make sure they're set to "preferred size"... even though the verticallayoutgroup has a notice that pops up, iirc, it seems to be the right way to do this kind of thing if I'm understanding correctly...?