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?

別のシーンで名前を表示させたい

Last updated at Posted at 2025-04-05

GameManagerに入れる

名前を変数で管理しているので、シーン変更した時にわかりやすいようGameManagerに保存します


  • 名前変数を追加
public string playerName;
  • 名前入力後の格納
GameManager.instance.playerName = myName;
  • 別のシーンで使う
string name = GameManager.instance.playerName;
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?