neuecc / UniRx

Reactive Extensions for Unity
MIT License
7.1k stars 889 forks source link

Multiline StringReactiveProperty #91

Closed lostfictions closed 9 years ago

lostfictions commented 9 years ago

Is there anyway to have a StringReactiveProperty that appears as multiline (as if it had had the [Multiline] attribute applied to it) in the inspector?

The only way to do it that I can see would be to add a new concrete implementation of ReactiveProperty<T> that duplicates most of its code, but that doesn't seem like a very good idea.

neuecc commented 9 years ago

Thank you for suggestion.

I've added MultilineReactivePropertyAttribute for StringReactiveProperty. You can use

public StringReactiveProperty SinglelineString;

[MultilineReactiveProperty]
public StringReactiveProperty MultineString;

image

Is it OK?

lostfictions commented 9 years ago

That's great! Thank you!