Oksana
Oksana

Reputation: 13942

How can I change size between lines in Unity3D's GUILabel

For my GUI I am using GUILabel.

How can I change the size between lines?

Upvotes: 1

Views: 1944

Answers (3)

Ivan Castellanos
Ivan Castellanos

Reputation: 8243

You can change the line height if you create a editable copy of the font, you just have to click in the font (in the Assets panel), go to the gear icon of the Inspector panel and click "Create Editable Copy". The new copy on the Assets panel has a parameter called "Line Spacing" that you can modify at will.

Upvotes: 1

Bart
Bart

Reputation: 20030

Unlike a GUIText there is no way to set line spacing for a GUILabel.

While a GUILabel is able to show multi-line text, to adjust the spacing you would have to insert extra newlines or modify the font used.

Upvotes: 1

YNK
YNK

Reputation: 869

I think you need to assign a GUIStyle to your label then you can use:

http://docs.unity3d.com/Documentation/ScriptReference/GUIStyle-lineHeight.html

== EDIT ==

lineHeight is readonly ... seems not possible currently.. try modifying the font instead

Upvotes: 0

Related Questions