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?

【Unity】Fungusの導入からカスタムまで(3)

Last updated at Posted at 2025-12-05

👉 前の記事 Fungusの導入からカスタムまで(2)

変数を使う

多分私がアレなだけなんだけど、変数の使い方が今までよく分からなかったので書いておきます。

image.png

まずフローチャートのVariablesに変数を追加します。この時、必ずPublicにしましょう。

    flowchart.SetStringVariable("playerName", "たろう");
    flowchart.SetStringVariable("partner", 1);

CS側はこれだけでOK。
文章表示は、{$playerName}で表示されます。もっと早く知りたかった。

立ち絵を動かす

psb関係はこちらのサイトを参考にしました。
https://hiyotama.hatenablog.com/entry/2021/03/31/222740
ひよこのたまごさん

image.png

ちょっと躓いたのが影響範囲関係かな…。例えば前髪だけ動かしたいのに、下の顔まで一緒に動いちゃうとか。
これボーンを非表示にしてそのレイヤーにAuto Geometryすれば良いだけなんですね。これ躓いてるの私だけなんだろうか。

test.gif

動かすとこんな感じ。いえい★
アニメーションの切り替えはfungusのPlay Anim Stateを使ってみました。

終わり

こんな感じで雑ですが、fungusについての覚書を書いてみました。
ちゃんとした解説とかではないけど、誰かのお役に立てれば幸いです。

👉 dotweenに関する記事はこちら 【Unity】 dotweenを使った動きの紹介

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?