GUI Text height limitation (SOLVED)

Is it possible to limit the height of a text box in the gui module to a fixed value like it is with the width of the text node? For example you can limit the width of the text node using the width parameter but this is not working with the height parameter for me.

Limiting the height will set the boundaries of the node to the set size, but the rendering of text will still overflow outside that limit. What do you want to happen to text outside the box?

I would like the text outside of the box to not be rendered so it won´t show the overflow.

Ok. You need to use a stencil clipping node for that. See https://www.defold.com/manuals/gui-clipping/

1 Like

Ahhh great! That´s what i was looking for. Thanks.

1 Like