Not sure the best way to do this. Basically I want to have the player health show as a number. I created a game object, put UI components, and then created using the display text option. In there I have it set to display the variable of the player which it does until I change scenes and then it disappears. I know that I could use a gauge but I wanted to use a number. Figure I might not be going about this the best way so curious what others think.
私がこの投稿をした直後に解決策が見つかるなんて、まさに予想通りでした。システム変数を作成し、それをプレイヤーの体力に設定することで、常に表示されるようにしました。唯一奇妙なのは、画面遷移の際に約1秒間その変数が消えてしまうことですが、まあいいでしょう。進捗です。
「いいね!」 1
ご解決できて光栄です!シーン遷移時の2番目のちらつきについては現在調査中です。
どうやら私もそれを見つけました。スクリプトの書き方に問題があったのです。それが理にかなっていないことに気づいて修正すると、ノイズは消えました。この投稿全体は、私が早合点しただけのようですね。![]()
「いいね!」 1