LoginSignup
2
3

More than 5 years have passed since last update.

unityの問題解決覚え書き

Last updated at Posted at 2017-10-14

unityで起こった問題とその解決方法を記していくページ
通りすがりの心優しい知識人(貴方様)が直してくれたりもっといい方法を教えてくれるという優しい世界。

unityでデータベース使いたい

ニフティモバイルバックエンドサービスを使うとすごく簡単に使い始められる
http://mb.cloud.nifty.com/
通称:mBaas かっこいいw

uuid発行方法

この世界ではuuidはGuidなんだね。

Guid guid=System.Guid.NewGuid();

FYI uuidについて

自端末(ローカル)にデータ保存したい

PlayerPrefs使う。StringとかIntとかならMap調に保存できる
たとえばハイスコア保存するとき

String HighScoreKey = "highScore";
int score = 20;

//set
PlayerPrefs.SetInt (HighScoreKey, score);

//get  第二引数は取得できなかったときに返す値
PlayerPrefs.GetInt (HighScoreKey, 0);

かんたん

not contain a definition のエラー、だいたいメソッド小文字説

<<クラス名>> does not contain a definition for <<メソッド名>> 
and no extension method <<メソッド名>> of type <<クラス名>> could be found. 
Are you missing an assembly reference?

ほんとにメソッドが存在しないか、メソッド名が間違っている。javaコーダーにありがちなのがメソッド小文字だと思いこんでるやつ。

2
3
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
2
3