A
A
Alexander Andropov2019-06-01 09:47:32
Unity
Alexander Andropov, 2019-06-01 09:47:32

How to wrap strings in public string?

Good afternoon friends. There is a certain text in the public string, separate for each prefab.
Is it possible in the Inspector to wrap lines when filling this variable? Write a sentence on a new line?
The sentences are long and I wish some would start with a new paragraph.
\n fails.
Whether it is possible to implement it somehow? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2019-06-01
@LongOf

actually google about Multiline
, take a look here
https://answers.unity.com/questions/424874/showing...
or in short a squeeze on attributes)
[TextArea(3,10)] //for convenient display of long lines
or
[Multiline ] //to transfer
or
make your own custom editor (the most time-consuming, but super flexible option)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question