Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

iiley

13
Posts
3
Topics
A member registered Nov 12, 2020

Recent community posts

Thank you, no worry, my project is not hurry I will wait for your release.

For:

Also, I believe that if you check "break text", text should ignore formatting rules if there are no spaces available to break at... I think.

That is not work for me because my player may enter Chinese English mixed sentences, so simply check "break text" will make Chinese looks good but English words looks bad. They key is to make mixed language sentences perform well.

(1 edit)

I saw the twitter gif for Japanese, it is similar to Chinese, looks great. But I prefer to have a opinion for developers of "refuses to put '(' at the end of a line, and refuses to put ')' and '!' at the beginning", some time we prefer to have regular line width than that. So if I can check or uncheck it for different situation, that would be perfect.

(1 edit)

I'm native Chinese speaker, so I can give advice for Chinese text. In fact, for Chinese words, you can think each character a word, so you can break a sentence at any position. For example:

我举个例子,这是一个文字比较多比较长断句需要有点讲究的句子给开发者参考一下怎么断句比较好。

You can break it at any position to make the line as long as possible(If our panel width is about 20 characters' width):

我举个例子,这是一个文字比较多比较长断句
需要有点讲究的句子给开发者参考一下怎么断
句比较好。

That is good, first two line take the width as big as possible and have same width, look nice. But if I change the text to :

我举个例子,这是一个文字比较多比较长断句需要有点讲究的句子给开发者参考一下怎么断,会比较好。

我举个例子,这是一个文字比较多比较长断句
需要有点讲究的句子给开发者参考一下怎么断
,会比较好。

You can see there is a "," at the beginning of third line, it is acceptable here, however it is better to make it at the end of the second line if possible.

I guess the complex thing is Chinese English mixtures. For example:

我举个混用的例子,我去Carrefore Stores买了一双鞋。

我举个混用的例子,我去Carrefore Stores
买了一双鞋。

That is good. But it is not good for this:

我举个混用的例子,我去Carrefore
Stores买了一双鞋。

Because it can contains "Stores" at the first line, but it doesn't. The key is that you can break English word before/behind Chinese character.

I don't know since I am not native English speaker, maybe "," is not usual for writing English? I saw people write "," always with a " ".  For me, I prefer do not add it, I guess it is good since it performs as same as build-in Text now.

(1 edit)

Well, I compared it with Unity build-in Text, seems it behaves the same. (It will put "Looooooo" on the first line if I use ", " instead of ",").

Thank you.

It seems work for Chinese break of my case, but not for English break with "," see screenshot here:

This is Unity's build Text component, it works well with Chinese and English. 

(2 edits)

Please see the screenshot, there's maybe Chinese, English or other languages, I need no-break text for alphabetic words(like English), but do break text for other languages(like Chinese).

How can I achieve that?

Thanks!

Thank you for the tips, it helps. 

Thank you very much, hope is will be supported, I did more testing,  RectMask2D really saved a lot of pass calls / batches for general use.

I'm making a scroll rect which will contains a big list of text items, after some experiences, i saw that RTM does not works well with RectMask2D,  however it works with Mask, but the SetPass calls will double.

Is there a way to let me make RectMask2D works to gain the performance benefits? 

Thanks!

It works, thank you.

BTW, i'm planning to use Super Text Mesh to my new project, which is a MMO mobile game, i'm wondering the performance of STM, how about it vs Unity default text, and can i get any tips to keep things fast? (I'v already read the documents but there is no performance related thing)

Thank you very much!

(1 edit)

The code is very simple, i just made a dialog behind the text, and auto adjust its size:

    public SpriteRenderer spr;

    void Update()
    {
        var stm = GetComponent<SuperTextMesh>();
        Vector2 s = new Vector2(stm.preferredWidth + 2f, stm.preferredHeight + 1f);
        spr.size = s;
    }