0
Fixed

Incorrect textarea drawing without linebreaks

Boris 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 4

Hello,

I was struggling with creating a unit that can display multiline strings. I found that there are Inspectable and InspectorTextArea attributes. However, they behave really strange with word wrapping:


Here is the code for the custom class:

[Inspectable]
public class LongText
{
    [Inspectable]
    [InspectorTextArea]
    [InspectorWide]
    public string Text;
}
Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Same goes for inspector:


Pending Review

Thanks for the report, I'll look into it.

Fixed

I tried reproducing this in the latest version (v.1.4.0f4) and it seems to behave properly, at least in the Formula unit:


Perhaps I fixed it as a side effect of another inspector refactor along the way.