Entries from 2015-04-29 to 1 day

【Unity ネタ】東大TV「Unity の開発環境が生み出す可能性(2013)」

ちょっと古いけど、Unityネタとして。 todai.tv

iTween.ScaleTo、ポップアップに使える!

使えるiTween iTween.ScaleTo (Player, iTween.Hash("x",0.25,"y",0.25,"time",0.5f));

UnityにWebを埋め込む

tips.hecomi.com

Rigidbody

物理挙動・摩擦UnityのRigidBodyや物理特性マテリアル設定castot09.seesaa.net

【Unity エラー】CS0201 : 演算子の間違い

error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statementgameObject.transform.tag=="ballRed"; これで解決、比較演算子ではない時(代入するとき)「=」 gameObject.transform.tag="ballRed"; …

【Unity エラー】CS0103 : タイプミスの可能性

テキストに書かれていない、認識できないものがある。例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/…

【C#】インクリメント、デクリメント

1つだけ足したり、1つだけ引くことはよくある 特別な書き方 x++; x--; //以下に等しい x = x + 1; x = x - 1; 例2 Score.instance.ScorePont++;

【Unity エラー】CS1612 : Mathf.Clamp

エラー内容 どうも一回要素を取り出してあげなければならないようだ。 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 …