Entries from 2015-04-29 to 1 day
ちょっと古いけど、Unityネタとして。 todai.tv
使えるiTween iTween.ScaleTo (Player, iTween.Hash("x",0.25,"y",0.25,"time",0.5f));
tips.hecomi.com
物理挙動・摩擦UnityのRigidBodyや物理特性マテリアル設定castot09.seesaa.net
error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statementgameObject.transform.tag=="ballRed"; これで解決、比較演算子ではない時(代入するとき)「=」 gameObject.transform.tag="ballRed"; …
テキストに書かれていない、認識できないものがある。例1 (タイプミス) error CS0103: The name `cal' does not exist in the current context if(cal.gameObject.transform.tag == "floorUpper"){ floor_Below = false; } 「col」の書き間違え例2 Assets/…
1つだけ足したり、1つだけ引くことはよくある 特別な書き方 x++; x--; //以下に等しい x = x + 1; x = x - 1; 例2 Score.instance.ScorePont++;
エラー内容 どうも一回要素を取り出してあげなければならないようだ。 Assets/Script/_Script_player2/PlayerManager.cs(20,35): error CS1612: Cannot modify a value type return value of `UnityEngine.Transform.position'. Consider storing the value …