0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

TextMeshProでスクリプトを使用せずに縦書きにする

Last updated at Posted at 2024-10-05
「医者さまを
   よばなくっちゃ。」

これを縦書きにしてみます。

「<rotate=90>医者さまを
  よばなくっちゃ。</rotate>」

image.png
<rotate>タグで文字を回転させ、TextMeshProのオブジェクトを右に90°回転します。
image.png

「っ」や「。」が左にずれているので、位置を右に補正します。

「<rotate=90>医者さまを
  よばなく<voffset=0.2em>っ</voffset>ち<voffset=0.2em>ゃ</voffset><voffset=0.6em>。</voffset></rotate>」
実際問題としては、こんな面倒なことを毎回やっていられないので結局スクリプトでタグを入れることになるかとは思いますが、 メッシュを編集する方法 とはまた別のアプローチとして使えるのではないかと思います。

参考:【Unity】TextMeshProのよく使うタグまとめ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?